[−][src]Struct twitch_api_rs::resource::clips::get_clips::GetClipsRequest
Request builder for the Get Clips
endpoint
Implementations
impl<A> GetClipsRequest<A> where
A: AuthToken,
[src]
A: AuthToken,
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]
S: Into<ClipId>,
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]
S: Into<StartedAt>,
T: Into<EndedAt>,
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]
S: Into<StartedAt>,
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]
A: AuthToken,
impl<A> ParametersExt for GetClipsRequest<A> where
A: AuthToken,
[src]
A: AuthToken,
impl<A> Request for GetClipsRequest<A> where
A: AuthToken + Sync,
[src]
A: AuthToken + Sync,
const ENDPOINT: &'static str
[src]
const METHOD: Method
[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
fn builder() -> Self
[src]
fn headers(&self) -> &Self::Headers
[src]
fn parameters(&self) -> &Self::Parameters
[src]
fn body(&self) -> &Self::Body
[src]
fn ready(&self) -> Result<(), RequestError<Self::ErrorCodes>>
[src]
#[must_use]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>> where
C: Borrow<Client> + Send,
C: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
client: C
) -> Pin<Box<dyn Future<Output = Result<Self::Response, RequestError<Self::ErrorCodes>>> + Send + 'async_trait>> where
C: Borrow<Client> + Send,
C: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
impl<A> Serialize for GetClipsRequest<A> where
A: AuthToken,
[src]
A: AuthToken,
Auto Trait Implementations
impl<A> RefUnwindSafe for GetClipsRequest<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for GetClipsRequest<A> where
A: Send,
A: Send,
impl<A> Sync for GetClipsRequest<A> where
A: Sync,
A: Sync,
impl<A> Unpin for GetClipsRequest<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for GetClipsRequest<A> where
A: UnwindSafe,
A: UnwindSafe,
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]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
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> Parameters for T where
T: ParametersExt,
[src]
T: ParametersExt,
pub fn write_parameters(&Self, RequestBuilder) -> RequestBuilder
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,