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