pub struct DeviceStart {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub verification_uri_complete: String,
pub expires_in: u64,
pub interval: u64,
}Expand description
A started device-authorization request. The box shows user_code /
verification_uri to a human, then polls with device_code (the secret)
until the request is approved or dies.
Fields§
§device_code: StringSecret the box polls with; never shown to the user.
user_code: StringShort human-readable code the user confirms in the browser.
verification_uri: StringWhere the user goes to approve (enter user_code there).
verification_uri_complete: StringOne-click URL with the code pre-filled.
expires_in: u64Seconds until the request expires (bounds the poll loop).
interval: u64Seconds the box should wait between polls.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DeviceStart
impl<'de> Deserialize<'de> for DeviceStart
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
Auto Trait Implementations§
impl Freeze for DeviceStart
impl RefUnwindSafe for DeviceStart
impl Send for DeviceStart
impl Sync for DeviceStart
impl Unpin for DeviceStart
impl UnsafeUnpin for DeviceStart
impl UnwindSafe for DeviceStart
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