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

pub struct Attributes {
    pub title: String,
    pub slug: String,
    pub caption: String,
    pub number: u16,
    pub description: String,
    pub display_title: String,
    pub length: u32,
    pub advert_config: String,
    pub advertising: bool,
    pub ad_timestamps: Option<String>,
    pub public_golive_at: DateTime<FixedOffset>,
    pub sponsor_golive_at: DateTime<FixedOffset>,
    pub member_golive_at: DateTime<FixedOffset>,
    pub original_air_date: DateTime<FixedOffset>,
    pub channel_id: String,
    pub channel_slug: String,
    pub season_id: String,
    pub season_slug: String,
    pub season_number: u16,
    pub show_title: String,
    pub show_id: String,
    pub show_slug: String,
    pub is_sponsors_only: bool,
    pub member_tier_i: i8,
    pub sort_number: u32,
    pub genres: Vec<String>,
    pub is_live: bool,
    pub is_schedulable: bool,
    pub season_order: String,
    pub episode_order: String,
    pub downloadable: bool,
    pub blacklisted_countries: Vec<String>,
    pub upsell_next: bool,
}

Most elements here will be fairly self-documenting.

Fields

title: String
"title": "Episode 1: Why Are We Here?"
slug: String

The url suffix of the episode, will be unique.

"slug": "red-vs-blue-season-1-episode-1"
caption: String
"caption": "Why Are We Here?"
number: u16
"number": 1
description: String
"description": "The first episode of Red... why are we here"
display_title: String
"display_title": "S1:E1 - Episode 1: Why Are We Here?"
length: u32

The length of the episode in seconds

"length": 256
advert_config: Stringadvertising: boolad_timestamps: Option<String>

Comma seperated timestamps for valid ad placements

"ad_timestamps": "60.00,120.00,180.00"
public_golive_at: DateTime<FixedOffset>

Technically the API returns a ISO 8601 compliant datetime, however the API uses Chrono to make interacting with the datetime more convenient.

sponsor_golive_at: DateTime<FixedOffset>member_golive_at: DateTime<FixedOffset>original_air_date: DateTime<FixedOffset>channel_id: String
"channel_id": "92b6bb21-91d2-4b1b-bf95-3268fa0d9939"
``
channel_slug: String
"channel_slug": "rooster-teeth"
season_id: String
"season_id": "ffa11de8-464d-11e7-a302-065410f210c4"
season_slug: String
"season_slug": "red-vs-blue-season-1"
season_number: u16
"season_number": 1
show_title: String
"show_title": "Red vs. Blue"
show_id: String
"show_id": "ff925ff9-464d-11e7-a302-065410f210c4"
show_slug: String
"show_slug": "red-vs-blue"
is_sponsors_only: bool
"is_sponsors_only": false
member_tier_i: i8
"member_tier_1": -1
sort_number: u32
"sort_number": 10001
genres: Vec<String>
genres: ["Action Packed", "Full of Laughs", "Games Reimagined", "Classic Rooster Teeth", "Rooster Teeth Originals"]
is_live: bool
"is_live": true
is_schedulable: bool

This endpoint is likely used to create the video list for RT-TV.

"is_schedulable": true
season_order: String

Default sorting, will either be "asc" or "desc"

"season_order": "desc"
episode_order: String
"episode_order": "asc"
downloadable: bool

Determines whether the video endpoint will have a links.download element.

"downloadable": true
blacklisted_countries: Vec<String>
"blacklisted_countries": []
upsell_next: bool
"upsell_next": false

Trait Implementations

impl Debug for Attributes[src]

impl<'de> Deserialize<'de> for Attributes[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.