Struct imdb_async::Title
source · pub struct Title { /* private fields */ }
Expand description
Represents a single title in IMDB; a “title” can be a show, an episode of a show, a movie, etc. See TitleType for a list.
Implementations§
source§impl Title
impl Title
pub fn title_type(&self) -> TitleType
pub fn primary_title(&self) -> &<CompactString as Deref>::Target
pub fn original_title(&self) -> &<CompactString as Deref>::Target
pub fn is_adult(&self) -> bool
pub fn start_year(&self) -> Option<u16>
pub fn end_year(&self) -> Option<u16>
pub fn runtime_minutes(&self) -> Option<u16>
pub fn genres(&self) -> &<ArrayVec<Genre, 3> as Deref>::Target
Trait Implementations§
source§impl<'de> Deserialize<'de> for Title
impl<'de> Deserialize<'de> for Title
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