pub struct DeviceAuthorization {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub expires_in: f64,
pub interval: Option<u64>,
}Expand description
The answer to a device authorization request: show user_code and verification_uri to the person.
Fields§
§device_code: StringSecret the device polls with. Never show it (it is also left out of Debug).
user_code: StringWhat the person types at verification_uri.
verification_uri: String§verification_uri_complete: Option<String>verification_uri with the code filled in, for a QR code or a link.
expires_in: f64Seconds until the codes expire.
interval: Option<u64>Minimum seconds between polls.
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 moreSource§impl Debug for DeviceAuthorization
impl Debug for DeviceAuthorization
Source§impl PartialEq for DeviceAuthorization
impl PartialEq for DeviceAuthorization
Source§fn eq(&self, other: &DeviceAuthorization) -> bool
fn eq(&self, other: &DeviceAuthorization) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceAuthorization
Auto 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