Skip to main content

Episode

Struct Episode 

Source
pub struct Episode {
Show 15 fields pub id: MediaId, pub show_id: MediaId, pub show_title: Option<String>, pub season_id: MediaId, pub season: u32, pub episode: u32, pub title: String, pub summary: Option<String>, pub content_rating: Option<String>, pub year: Option<u16>, pub air_date: Option<CalendarDate>, pub duration: Option<Duration>, pub cast: Vec<CastMember>, pub artwork: Vec<Artwork>, pub playback: PlaybackState,
}

Fields§

§id: MediaId§show_id: MediaId§show_title: Option<String>

The show’s title, so an episode shown alone (Continue watching) needs no second request.

§season_id: MediaId§season: u32§episode: u32§title: String§summary: Option<String>§content_rating: Option<String>

The episode’s own age rating, as on a movie; a client that has none here may show the show’s.

§year: Option<u16>

The year it first aired, for “2019” on its page: the catalog’s own, else air_date’s.

This and air_date are not required::option, as Movie::release_date is not.

§air_date: Option<CalendarDate>

The day it first aired, "YYYY-MM-DD".

§duration: Option<Duration>§cast: Vec<CastMember>

Who is in it and who directed it (see CastMember): the episode’s own, which may leave out the show’s regulars. Left out, no one, as Movie::cast.

§artwork: Vec<Artwork>§playback: PlaybackState

Trait Implementations§

Source§

impl Clone for Episode

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Episode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Episode

Source§

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 Eq for Episode

Source§

impl PartialEq for Episode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Episode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Episode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.