pub struct DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,{ /* private fields */ }Expand description
Standard OAuth2 device authorization response.
Implementations§
Source§impl<EF> DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,
 
impl<EF> DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,
Sourcepub fn device_code(&self) -> &DeviceCode
 
pub fn device_code(&self) -> &DeviceCode
The device verification code.
Sourcepub fn verification_uri(&self) -> &EndUserVerificationUrl
 
pub fn verification_uri(&self) -> &EndUserVerificationUrl
The end-user verification URI on the authorization The URI should be short and easy to remember as end users will be asked to manually type it into their user agent.
Sourcepub fn verification_uri_complete(&self) -> Option<&VerificationUriComplete>
 
pub fn verification_uri_complete(&self) -> Option<&VerificationUriComplete>
A verification URI that includes the “user_code” (or other information with the same function as the “user_code”), which is designed for non-textual transmission.
Sourcepub fn expires_in(&self) -> Duration
 
pub fn expires_in(&self) -> Duration
The lifetime in seconds of the “device_code” and “user_code”.
Sourcepub fn interval(&self) -> Duration
 
pub fn interval(&self) -> Duration
The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
Sourcepub fn extra_fields(&self) -> &EF
 
pub fn extra_fields(&self) -> &EF
Any extra fields returned on the response.
Trait Implementations§
Source§impl<EF> Clone for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields + Clone,
 
impl<EF> Clone for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields + Clone,
Source§fn clone(&self) -> DeviceAuthorizationResponse<EF>
 
fn clone(&self) -> DeviceAuthorizationResponse<EF>
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<EF> Debug for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields + Debug,
 
impl<EF> Debug for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields + Debug,
Source§impl<'de, EF> Deserialize<'de> for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,
 
impl<'de, EF> Deserialize<'de> for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,
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
Source§impl<EF> Serialize for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,
 
impl<EF> Serialize for DeviceAuthorizationResponse<EF>where
    EF: ExtraDeviceAuthorizationFields,
Auto Trait Implementations§
impl<EF> Freeze for DeviceAuthorizationResponse<EF>where
    EF: Freeze,
impl<EF> RefUnwindSafe for DeviceAuthorizationResponse<EF>where
    EF: RefUnwindSafe,
impl<EF> Send for DeviceAuthorizationResponse<EF>where
    EF: Send,
impl<EF> Sync for DeviceAuthorizationResponse<EF>where
    EF: Sync,
impl<EF> Unpin for DeviceAuthorizationResponse<EF>where
    EF: Unpin,
impl<EF> UnwindSafe for DeviceAuthorizationResponse<EF>where
    EF: 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> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more