pub type StandardDeviceAuthorizationResponse = DeviceAuthorizationResponse<EmptyExtraDeviceAuthorizationFields>;
Expand description
Standard implementation of DeviceAuthorizationResponse which throws away extra received response fields.
Aliased Type§
struct StandardDeviceAuthorizationResponse { /* private fields */ }
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