[][src]Struct rick_and_morty::episode::Episode

pub struct Episode {
    pub id: i64,
    pub name: String,
    pub air_date: String,
    pub episode: String,
    pub characters: Vec<String>,
    pub url: String,
    pub created: String,
}

Episode struct closely matches episode endpoint.

Fields

id: i64

episode id

name: String

episode name

air_date: String

episode air date. e.g "December 2, 2013"

episode: String

episode code: e.g "S01E01"

characters: Vec<String>

slice of character urls

url: String

location url

created: String

created date

Implementations

impl Episode[src]

pub async fn characters<'_>(&'_ self) -> Result<Vec<Character>, Error>[src]

returns characters that appear in the episode.

Trait Implementations

impl Clone for Episode[src]

impl Debug for Episode[src]

impl Default for Episode[src]

impl<'de> Deserialize<'de> for Episode[src]

impl PartialEq<Episode> for Episode[src]

impl Serialize for Episode[src]

impl StructuralPartialEq for Episode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.