[][src]Struct roosterteeth_rs::structs::episodes::Episode

pub struct Episode {
    pub index: String,
    pub sort: Option<Vec<u64>>,
    pub id: u32,
    pub kind: String,
    pub uuid: String,
    pub attributes: Attributes,
    pub links: Links,
    pub canonical_links: CanonicalLinks,
    pub included: Included,
}

The Episodes struct is a strongly typed wrapper of the episodes endpoint. The full json format can be explored in your browser here, or explore the object's fields below.

Most fields should have an example provided below, shown in the raw JSON format.

Fields

index: String

Kind is a renamed reference to the type of object the metadata is describing, in this context it will always be episode.

"type": "episode"
sort: Option<Vec<u64>>

Though stored as a vector, sort can be treated as an Option. It doesn't have a known meaning.

"sort": [ 10001 ]
id: u32

The ID is the overall numeric identifier of the episode, ever increasing.

"id": 23242
kind: String

Index appears to be the timestamp the metadata was generated at.

"_index": "episodes-production-en_20200108090014250"
uuid: String

The UUID is a unique reference to an episode similar to it's slug.

"uuid": "ffac28dc-464d-11e7-a302-065410f210c4"
attributes: Attributeslinks: Linkscanonical_links: CanonicalLinksincluded: Included

Trait Implementations

impl Debug for Episode[src]

impl<'de> Deserialize<'de> 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, 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.