[][src]Struct roosterteeth_rs::requests::Requests

pub struct Requests { /* fields omitted */ }

The requests client is split up into two classes of functions, list_* which does not require arguments, and get_*, which requires the slug to retrieve further information.

Implementations

impl Requests[src]

pub fn new(credential: Credential<'_>) -> Self[src]

This creates the Reqwest client used to make the rest of our calls.

pub fn list_channels(&self) -> Vec<Channel>[src]

Returns a list of avaliable RoosterTeeth channels that can be used by the API.

pub fn list_episodes<'a>(
    &self,
    page: u16,
    channel: Option<&'a str>,
    order: Option<&'a str>
) -> Vec<Episode>
[src]

This returns up to 100 episodes from the RoosterTeeth API. Channels are specified by their slug, and order is either 'asc' for ascending or 'dec' for descending.

pub fn list_series<'a>(
    &self,
    channel: Option<&'a str>,
    order: Option<&'a str>
) -> Vec<Series>
[src]

pub fn get_seasons<'a>(
    &self,
    slug: &'a str,
    order: Option<&'a str>
) -> Vec<Season>
[src]

Gets all season information from a specific series from its slug.

pub fn get_season_episodes<'a>(
    &self,
    slug: &'a str,
    order: Option<&'a str>
) -> Vec<Episode>
[src]

Gets the episodes belonging to a specific season by its slug.

pub fn get_series<'a>(&self, slug: &'a str) -> Series[src]

Gets a specific series information from its slug. This returns an identical result to those of list_series()

pub fn get_episode<'a>(&self, slug: &'a str) -> Episode[src]

pub fn get_video<'a>(&self, slug: &'a str) -> Result<Video, VideoUnavailable>[src]

Gets an episodes viewing information from its slug. Please note that this can result in an error if we don't have the permission to view that video.

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> 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.