pub struct DeviceAuthorizationResponse {
pub device_code: String,
pub user_code: String,
pub verification_uri: Option<Uri>,
pub verification_url: Option<Uri>,
pub verification_uri_complete: Option<Uri>,
pub expires_in: i64,
pub interval: Option<i64>,
}Expand description
Fields§
§device_code: Stringdevice verification code
user_code: Stringend user verification code
verification_uri: Option<Uri>end user verification uri on the authorization server
verification_url: Option<Uri>Google use verification_“url”
verification_uri_complete: Option<Uri>a verification uri that includes user_code which is designed for non-textual transmission.
expires_in: i64the lifetime in seconds of the device_code and user_code
interval: Option<i64>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
Implementations§
source§impl DeviceAuthorizationResponse
impl DeviceAuthorizationResponse
pub fn verification_uri(&self) -> &Uri
Trait Implementations§
source§impl Clone for DeviceAuthorizationResponse
impl Clone for DeviceAuthorizationResponse
source§fn clone(&self) -> DeviceAuthorizationResponse
fn clone(&self) -> DeviceAuthorizationResponse
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 DeviceAuthorizationResponse
impl Debug for DeviceAuthorizationResponse
source§impl<'de> Deserialize<'de> for DeviceAuthorizationResponse
impl<'de> Deserialize<'de> for DeviceAuthorizationResponse
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 PartialEq for DeviceAuthorizationResponse
impl PartialEq for DeviceAuthorizationResponse
source§fn eq(&self, other: &DeviceAuthorizationResponse) -> bool
fn eq(&self, other: &DeviceAuthorizationResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DeviceAuthorizationResponse
impl StructuralPartialEq for DeviceAuthorizationResponse
Auto Trait Implementations§
impl !Freeze for DeviceAuthorizationResponse
impl RefUnwindSafe for DeviceAuthorizationResponse
impl Send for DeviceAuthorizationResponse
impl Sync for DeviceAuthorizationResponse
impl Unpin for DeviceAuthorizationResponse
impl UnwindSafe for DeviceAuthorizationResponse
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.