Struct twitch_api_rs::auth::client_credentials::ClientAuthRequest [−][src]
Request for the client authentication
flow.
See module level documentation for usage.
implemnts Request
, see documentation for more information.
Implementations
impl ClientAuthRequest
[src]
pub fn set_client_id<I: Into<ClientId>>(&mut self, client_id: I) -> &mut Self
[src]
Set the client_id
pub fn set_client_secret<S: Into<ClientSecret>>(
&mut self,
client_secret: S
) -> &mut Self
[src]
&mut self,
client_secret: S
) -> &mut Self
Set the client_secret
Trait Implementations
impl Debug for ClientAuthRequest
[src]
impl<I, S> From<(I, S)> for ClientAuthRequest where
I: Into<ClientId>,
S: Into<ClientSecret>,
[src]
I: Into<ClientId>,
S: Into<ClientSecret>,
Build a complete request from (client_id, client_secret)
impl Request for ClientAuthRequest
[src]
const ENDPOINT: &'static str
[src]
type Headers = ()
The type that represents the headers sent with this request
type Parameters = ClientAuthRequestParams
The type that represents the query parameters sent with this request
type Body = ()
The type that represents the body of this request
type Response = ClientAuthResponse
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
const METHOD: Method
[src]
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,
Auto Trait Implementations
impl RefUnwindSafe for ClientAuthRequest
[src]
impl Send for ClientAuthRequest
[src]
impl Sync for ClientAuthRequest
[src]
impl Unpin for ClientAuthRequest
[src]
impl UnwindSafe for ClientAuthRequest
[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>,
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>,