Struct synd_auth::device_flow::DeviceAccessTokenResponse
source · pub struct DeviceAccessTokenResponse {
pub access_token: String,
pub token_type: String,
pub expires_in: Option<i64>,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
}Expand description
Successful Response https://datatracker.ietf.org/doc/html/rfc6749#section-5.1
Fields§
§access_token: Stringthe access token issued by the authorization server
token_type: String§expires_in: Option<i64>the lifetime in seconds of the access token
refresh_token: Option<String>§id_token: Option<String>Trait Implementations§
source§impl Clone for DeviceAccessTokenResponse
impl Clone for DeviceAccessTokenResponse
source§fn clone(&self) -> DeviceAccessTokenResponse
fn clone(&self) -> DeviceAccessTokenResponse
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 DeviceAccessTokenResponse
impl Debug for DeviceAccessTokenResponse
source§impl<'de> Deserialize<'de> for DeviceAccessTokenResponse
impl<'de> Deserialize<'de> for DeviceAccessTokenResponse
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 DeviceAccessTokenResponse
impl RefUnwindSafe for DeviceAccessTokenResponse
impl Send for DeviceAccessTokenResponse
impl Sync for DeviceAccessTokenResponse
impl Unpin for DeviceAccessTokenResponse
impl UnwindSafe for DeviceAccessTokenResponse
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