[][src]Struct twitch_api_rs::resource::clips::get_clips::GetClipsRequest

pub struct GetClipsRequest<A> where
    A: AuthToken
{ /* fields omitted */ }

Request builder for the Get Clips endpoint

Implementations

impl<A> GetClipsRequest<A> where
    A: AuthToken
[src]

pub fn set_auth(&mut self, auth: A) -> &mut Self[src]

Set the authorization token to be used with this request

pub fn set_broadcaster_id<S: Into<BroadcasterId>>(&mut self, id: S) -> &mut Self[src]

Set the broadcaster_id request

Will replace current query type if already called set_game_id or add_clip_id

pub fn set_game_id<S: Into<GameId>>(&mut self, id: S) -> &mut Self[src]

Set the game_id request

Will replace current query type if already called set_broadcaster_id or add_clip_id

pub fn add_clip_id<S: Into<ClipId>>(&mut self, id: S) -> &mut Self[src]

Add a clip_id to search for

Will replace current query type if already called set_broadcaster_id or set_game_id

pub fn set_clip_ids<S>(&mut self, set: Vec<S>) -> &mut Self where
    S: Into<ClipId>, 
[src]

Replace the currect query with a specific set of game_ids

Will replace current query type if already called set_broadcaster_id or set_game_id

pub fn clear_clip_ids(&mut self) -> &mut Self[src]

Clear the current query if it is of the type clip_id

pub fn set_count<C: Into<Count>>(&mut self, count: C) -> &mut Self[src]

Sets the max amount of items to be returned from this request

Without being set this value is 20

pub fn reset_count(&mut self) -> &mut Self[src]

Resets the amount of items to be returned from this request to its default of 20

pub fn set_period<S, T>(&mut self, started_at: S, ended_at: T) -> &mut Self where
    S: Into<StartedAt>,
    T: Into<EndedAt>, 
[src]

Set a time window filter, times are RFC3339

pub fn set_started_at<S>(&mut self, started_at: S) -> &mut Self where
    S: Into<StartedAt>, 
[src]

Set the start of the date/time window filter, if set_ended_at not called then the window ends a week from this value

pub fn set_ended_at<S: Into<EndedAt>>(&mut self, ended_at: S) -> &mut Self[src]

Set the end of the date/time window filter, if set_started_at not called before this then it does nothing as and end may not be set without a start

pub fn before<P: Into<Pagination>>(&mut self, before: P) -> &mut Self[src]

Set the backwards pagination cursor for this request, use with Pagination from previous response

pub fn after<P: Into<Pagination>>(&mut self, after: P) -> &mut Self[src]

Set the forwards pagination cursor for this request, use with Pagination from previous response

Trait Implementations

impl<A: Debug> Debug for GetClipsRequest<A> where
    A: AuthToken
[src]

impl<A> ParametersExt for GetClipsRequest<A> where
    A: AuthToken
[src]

impl<A> Request for GetClipsRequest<A> where
    A: AuthToken + Sync
[src]

type Headers = A

The type that represents the headers sent with this request

type Parameters = Self

The type that represents the query parameters sent with this request

type Body = ()

The type that represents the body of this request

type Response = GetClipsResponse

The type returned by a sucessful request, must be DeserializeOwned and have at least a static lifetime (owned). Read more

type ErrorCodes = CommonResponseCodes

The type that encapsulates the error codes that this endpoint can return, must have at least a static lifetime (owned). Read more

impl<A> Serialize for GetClipsRequest<A> where
    A: AuthToken
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for GetClipsRequest<A> where
    A: RefUnwindSafe

impl<A> Send for GetClipsRequest<A> where
    A: Send

impl<A> Sync for GetClipsRequest<A> where
    A: Sync

impl<A> Unpin for GetClipsRequest<A> where
    A: Unpin

impl<A> UnwindSafe for GetClipsRequest<A> where
    A: UnwindSafe

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> Parameters for T where
    T: ParametersExt
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,