[−][src]Struct roosterteeth_rs::requests::Requests
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]
&self,
page: u16,
channel: Option<&'a str>,
order: Option<&'a str>
) -> Vec<Episode>
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]
&self,
channel: Option<&'a str>,
order: Option<&'a str>
) -> Vec<Series>
pub fn get_seasons<'a>(
&self,
slug: &'a str,
order: Option<&'a str>
) -> Vec<Season>
[src]
&self,
slug: &'a str,
order: Option<&'a str>
) -> Vec<Season>
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]
&self,
slug: &'a str,
order: Option<&'a str>
) -> Vec<Episode>
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
impl !RefUnwindSafe for Requests
[src]
impl Send for Requests
[src]
impl Sync for Requests
[src]
impl Unpin for Requests
[src]
impl !UnwindSafe for Requests
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,