Struct stremio_core::models::local_search::Searchable
source · pub struct Searchable {
pub id: String,
pub name: String,
pub type: String,
pub poster: Option<Url>,
pub imdb_rating: Option<ImdbRating>,
pub popularity: Option<u64>,
pub release_info: Option<String>,
}
Expand description
A searchable item
Fields§
§id: String
§name: String
Some deleted or duplicated ids might not have the name
this is why we default it to empty string and will later
filter out any items with empty name
before indexing.
type: String
§poster: Option<Url>
§imdb_rating: Option<ImdbRating>
§popularity: Option<u64>
§release_info: Option<String>
Trait Implementations§
source§impl Clone for Searchable
impl Clone for Searchable
source§fn clone(&self) -> Searchable
fn clone(&self) -> Searchable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Searchable
impl Debug for Searchable
source§impl<'de> Deserialize<'de> for Searchable
impl<'de> Deserialize<'de> for Searchable
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Searchable
impl PartialEq for Searchable
source§impl Serialize for Searchable
impl Serialize for Searchable
impl StructuralPartialEq for Searchable
Auto Trait Implementations§
impl Freeze for Searchable
impl RefUnwindSafe for Searchable
impl Send for Searchable
impl Sync for Searchable
impl Unpin for Searchable
impl UnwindSafe for Searchable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)