pub struct DeviceAuth {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub expires_in: u64,
pub interval: u64,
}Expand description
A started device authorization (RFC 8628 §3.2).
Fields§
§device_code: StringSECRET. Never print this — it is the bearer of the pending login.
user_code: StringThe short code the human types into the browser. This is the one value in the whole flow that MUST be shown to the user.
verification_uri: String§verification_uri_complete: Option<String>§expires_in: u64§interval: u64Trait Implementations§
Source§impl Clone for DeviceAuth
impl Clone for DeviceAuth
Source§impl Debug for DeviceAuth
Hand-written so device_code cannot leak through {:?}.
impl Debug for DeviceAuth
Hand-written so device_code cannot leak through {:?}.
Source§impl<'de> Deserialize<'de> for DeviceAuth
impl<'de> Deserialize<'de> for DeviceAuth
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 DeviceAuth
impl RefUnwindSafe for DeviceAuth
impl Send for DeviceAuth
impl Sync for DeviceAuth
impl Unpin for DeviceAuth
impl UnsafeUnpin for DeviceAuth
impl UnwindSafe for DeviceAuth
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