pub struct DeviceCodeAuthorization {
pub token_type: String,
pub scope: String,
pub expires_in: u64,
/* private fields */
}
Expand description
A successful token response.
Fields§
§token_type: String
Always Bearer
.
scope: String
The scopes the access token is valid for. Format: Space separated strings
expires_in: u64
Number of seconds the included access token is valid for.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceCodeAuthorization
impl Clone for DeviceCodeAuthorization
Source§fn clone(&self) -> DeviceCodeAuthorization
fn clone(&self) -> DeviceCodeAuthorization
Returns a copy 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 Debug for DeviceCodeAuthorization
impl Debug for DeviceCodeAuthorization
Source§impl<'de> Deserialize<'de> for DeviceCodeAuthorization
impl<'de> Deserialize<'de> for DeviceCodeAuthorization
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 DeviceCodeAuthorization
impl RefUnwindSafe for DeviceCodeAuthorization
impl Send for DeviceCodeAuthorization
impl Sync for DeviceCodeAuthorization
impl Unpin for DeviceCodeAuthorization
impl UnwindSafe for DeviceCodeAuthorization
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