pub struct GetClipsRequest<A>where
A: AuthToken,{ /* private fields */ }
Expand description
Request builder for the Get Clips
endpoint
Implementations§
Source§impl<A> GetClipsRequest<A>where
A: AuthToken,
impl<A> GetClipsRequest<A>where
A: AuthToken,
Sourcepub fn set_auth(&mut self, auth: A) -> &mut Self
pub fn set_auth(&mut self, auth: A) -> &mut Self
Set the authorization token to be used with this request
Sourcepub fn set_broadcaster_id<S: Into<BroadcasterId>>(&mut self, id: S) -> &mut Self
pub fn set_broadcaster_id<S: Into<BroadcasterId>>(&mut self, id: S) -> &mut Self
Set the broadcaster_id request
Will replace current query type if already called set_game_id
or add_clip_id
Sourcepub fn set_game_id<S: Into<GameId>>(&mut self, id: S) -> &mut Self
pub fn set_game_id<S: Into<GameId>>(&mut self, id: S) -> &mut Self
Set the game_id request
Will replace current query type if already called set_broadcaster_id
or add_clip_id
Sourcepub fn add_clip_id<S: Into<ClipId>>(&mut self, id: S) -> &mut Self
pub fn add_clip_id<S: Into<ClipId>>(&mut self, id: S) -> &mut Self
Add a clip_id to search for
Will replace current query type if already called set_broadcaster_id
or set_game_id
Sourcepub fn set_clip_ids<S>(&mut self, set: Vec<S>) -> &mut Self
pub fn set_clip_ids<S>(&mut self, set: Vec<S>) -> &mut Self
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
Sourcepub fn clear_clip_ids(&mut self) -> &mut Self
pub fn clear_clip_ids(&mut self) -> &mut Self
Clear the current query if it is of the type clip_id
Sourcepub fn set_count<C: Into<Count>>(&mut self, count: C) -> &mut Self
pub fn set_count<C: Into<Count>>(&mut self, count: C) -> &mut Self
Sets the max amount of items to be returned from this request
Without being set this value is 20
Sourcepub fn reset_count(&mut self) -> &mut Self
pub fn reset_count(&mut self) -> &mut Self
Resets the amount of items to be returned from this request to its default of 20
Sourcepub fn set_period<S, T>(&mut self, started_at: S, ended_at: T) -> &mut Self
pub fn set_period<S, T>(&mut self, started_at: S, ended_at: T) -> &mut Self
Set a time window filter, times are RFC3339
Sourcepub fn set_started_at<S>(&mut self, started_at: S) -> &mut Self
pub fn set_started_at<S>(&mut self, started_at: S) -> &mut Self
Set the start of the date/time window filter, if set_ended_at not called then the window ends a week from this value
Sourcepub fn set_ended_at<S: Into<EndedAt>>(&mut self, ended_at: S) -> &mut Self
pub fn set_ended_at<S: Into<EndedAt>>(&mut self, ended_at: S) -> &mut Self
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
Sourcepub fn before<P: Into<Pagination>>(&mut self, before: P) -> &mut Self
pub fn before<P: Into<Pagination>>(&mut self, before: P) -> &mut Self
Set the backwards pagination cursor for this request, use with Pagination from previous response
Sourcepub fn after<P: Into<Pagination>>(&mut self, after: P) -> &mut Self
pub fn after<P: Into<Pagination>>(&mut self, after: P) -> &mut Self
Set the forwards pagination cursor for this request, use with Pagination from previous response
Trait Implementations§
Source§impl<A> Debug for GetClipsRequest<A>
impl<A> Debug for GetClipsRequest<A>
Source§impl<A> Request for GetClipsRequest<A>
impl<A> Request for GetClipsRequest<A>
Source§const ENDPOINT: &'static str = "https://api.twitch.tv/helix/clips"
const ENDPOINT: &'static str = "https://api.twitch.tv/helix/clips"
Source§type Parameters = GetClipsRequest<A>
type Parameters = GetClipsRequest<A>
Source§type Response = GetClipsResponse
type Response = GetClipsResponse
DeserializeOwned
and have at least a static lifetime (owned).Source§type ErrorCodes = CommonResponseCodes
type ErrorCodes = CommonResponseCodes
Source§fn parameters(&self) -> &Self::Parameters
fn parameters(&self) -> &Self::Parameters
Source§fn ready(&self) -> Result<(), RequestError<Self::ErrorCodes>>
fn ready(&self) -> Result<(), RequestError<Self::ErrorCodes>>
Ok(())
if and only if this request is ready to have
Self::make_request
called on it. Read moreSource§fn make_request<'life0, 'async_trait, C>(
&'life0 self,
client: C,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, RequestError<Self::ErrorCodes>>> + Send + 'async_trait>>
fn make_request<'life0, 'async_trait, C>( &'life0 self, client: C, ) -> Pin<Box<dyn Future<Output = Result<Self::Response, RequestError<Self::ErrorCodes>>> + Send + 'async_trait>>
Self::ready
returns
Ok(())
.