pub struct DeviceAuthorization {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub interval_secs: u64,
pub expires_in_secs: u64,
}Expand description
The RFC 8628 device-authorization-response fields this module needs.
Fields§
§device_code: StringOpaque device code the client polls the token endpoint with.
user_code: StringShort code the USER enters at verification_uri.
verification_uri: StringThe URL the user visits.
verification_uri_complete: Option<String>A URL that already embeds user_code, if the server provided one —
print this instead of verification_uri + user_code separately
when present.
interval_secs: u64How often (seconds) the client should poll the token endpoint.
expires_in_secs: u64How long (seconds) device_code remains valid.
Trait Implementations§
Source§impl Clone for DeviceAuthorization
impl Clone for DeviceAuthorization
Source§fn clone(&self) -> DeviceAuthorization
fn clone(&self) -> DeviceAuthorization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceAuthorization
impl RefUnwindSafe for DeviceAuthorization
impl Send for DeviceAuthorization
impl Sync for DeviceAuthorization
impl Unpin for DeviceAuthorization
impl UnsafeUnpin for DeviceAuthorization
impl UnwindSafe for DeviceAuthorization
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