pub struct GetChannelInformationRequest<A>where
A: AuthToken,{ /* private fields */ }
Expand description
Request builder for the Get Channel Information
endpoint
See module level documentation for usage.
Implementations§
Source§impl<A> GetChannelInformationRequest<A>where
A: AuthToken,
impl<A> GetChannelInformationRequest<A>where
A: AuthToken,
Sourcepub fn set_broadcaster_id<B>(&mut self, broadcaster_id: B) -> &mut Selfwhere
B: Into<BroadcasterId>,
pub fn set_broadcaster_id<B>(&mut self, broadcaster_id: B) -> &mut Selfwhere
B: Into<BroadcasterId>,
Set the broadcaster_id for whom you are requesting informaiton
Trait Implementations§
Source§impl<A> Clone for GetChannelInformationRequest<A>
impl<A> Clone for GetChannelInformationRequest<A>
Source§fn clone(&self) -> GetChannelInformationRequest<A>
fn clone(&self) -> GetChannelInformationRequest<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A> Debug for GetChannelInformationRequest<A>
impl<A> Debug for GetChannelInformationRequest<A>
Source§impl<A> Request for GetChannelInformationRequest<A>
impl<A> Request for GetChannelInformationRequest<A>
Source§const ENDPOINT: &'static str = "https://api.twitch.tv/helix/channels"
const ENDPOINT: &'static str = "https://api.twitch.tv/helix/channels"
Endpoint where the request is made
Source§type Parameters = GetChannelInformationRequest<A>
type Parameters = GetChannelInformationRequest<A>
The type that represents the query parameters sent with this request
Source§type Response = GetChannelInformationResponse
type Response = GetChannelInformationResponse
The type returned by a sucessful request, must be
DeserializeOwned
and have at least a static lifetime (owned).Source§type ErrorCodes = CommonResponseCodes
type ErrorCodes = CommonResponseCodes
The type that encapsulates the error codes that this endpoint can return,
must have at least a static lifetime (owned).
Source§fn parameters(&self) -> &Self::Parameters
fn parameters(&self) -> &Self::Parameters
Get the Parameters struct for this Request Read more
Source§fn ready(&self) -> Result<(), RequestError<Self::ErrorCodes>>
fn ready(&self) -> Result<(), RequestError<Self::ErrorCodes>>
Must return
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>>
Make the request represented by this object. Only makes request if
Self::ready
returns
Ok(())
.Source§impl<A> Serialize for GetChannelInformationRequest<A>where
A: AuthToken,
impl<A> Serialize for GetChannelInformationRequest<A>where
A: AuthToken,
impl<A> ParametersExt for GetChannelInformationRequest<A>where
A: AuthToken,
Auto Trait Implementations§
impl<A> Freeze for GetChannelInformationRequest<A>where
A: Freeze,
impl<A> RefUnwindSafe for GetChannelInformationRequest<A>where
A: RefUnwindSafe,
impl<A> Send for GetChannelInformationRequest<A>where
A: Send,
impl<A> Sync for GetChannelInformationRequest<A>where
A: Sync,
impl<A> Unpin for GetChannelInformationRequest<A>where
A: Unpin,
impl<A> UnwindSafe for GetChannelInformationRequest<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Parameters for Twhere
T: ParametersExt,
impl<T> Parameters for Twhere
T: ParametersExt,
Source§fn write_parameters(&self, req: RequestBuilder) -> RequestBuilder
fn write_parameters(&self, req: RequestBuilder) -> RequestBuilder
Write parameters to request builder and return request builder