pub struct ClientAuthResponse {
pub access_token: String,
pub expires_in: u32,
}
Expand description
Response from a successful ClientAuthRequest
See module level docuemntation to see how to get
Fields§
§access_token: String
The access_token returned by twitch
expires_in: u32
The amount of seconds until the token expires
Trait Implementations§
Source§impl Debug for ClientAuthResponse
impl Debug for ClientAuthResponse
Source§impl<'de> Deserialize<'de> for ClientAuthResponse
impl<'de> Deserialize<'de> for ClientAuthResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientAuthResponse
impl RefUnwindSafe for ClientAuthResponse
impl Send for ClientAuthResponse
impl Sync for ClientAuthResponse
impl Unpin for ClientAuthResponse
impl UnwindSafe for ClientAuthResponse
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