pub struct DeviceCode {
pub verification_url: String,
pub user_code: String,
pub expires_in: Duration,
}Expand description
What the user must do to approve a device sign-in.
Fields§
§verification_url: StringThe page to open on a phone or computer.
user_code: StringThe code to enter there.
expires_in: DurationHow long the code stays valid.
Trait Implementations§
Source§impl Clone for DeviceCode
impl Clone for DeviceCode
Auto Trait Implementations§
impl Freeze for DeviceCode
impl RefUnwindSafe for DeviceCode
impl Send for DeviceCode
impl Sync for DeviceCode
impl Unpin for DeviceCode
impl UnsafeUnpin for DeviceCode
impl UnwindSafe for DeviceCode
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