Enum imdb_async::TitleType
source · #[repr(u8)]pub enum TitleType {
Short = 0,
Movie = 1,
Episode = 2,
TVSeries = 3,
TVShort = 4,
TVSpecial = 5,
Video = 6,
VideoGame = 7,
Audiobook = 8,
RadioSeries = 9,
RadioEpisode = 10,
}
Expand description
Identifies the type of a Title. IMDB has more possible values that, because this crate is opinionated, we collapse down.
For example, “episode”, “tvEpisode”, and “tvPilot” all become TitleType::Episode.
Variants§
Short = 0
Movie = 1
Episode = 2
TVSeries = 3
TVShort = 4
TVSpecial = 5
Video = 6
VideoGame = 7
Audiobook = 8
RadioSeries = 9
RadioEpisode = 10
Trait Implementations§
source§impl<'de> Deserialize<'de> for TitleType
impl<'de> Deserialize<'de> for TitleType
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 TitleType
impl PartialEq for TitleType
impl Copy for TitleType
impl Eq for TitleType
impl StructuralPartialEq for TitleType
Auto Trait Implementations§
impl Freeze for TitleType
impl RefUnwindSafe for TitleType
impl Send for TitleType
impl Sync for TitleType
impl Unpin for TitleType
impl UnwindSafe for TitleType
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)