pub struct DeviceCodeInfo { /* private fields */ }
Available on crate feature
auth
only.Expand description
Struct used to finish authentication. Contains the user_code and URL.
Implementations§
Source§impl DeviceCodeInfo
impl DeviceCodeInfo
Sourcepub fn verification_url(&self) -> String
pub fn verification_url(&self) -> String
Get the verification URL
Sourcepub fn expires_in(&self) -> Duration
pub fn expires_in(&self) -> Duration
When the user_code expires
Trait Implementations§
Source§impl Clone for DeviceCodeInfo
impl Clone for DeviceCodeInfo
Source§fn clone(&self) -> DeviceCodeInfo
fn clone(&self) -> DeviceCodeInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DeviceCodeInfo
impl RefUnwindSafe for DeviceCodeInfo
impl Send for DeviceCodeInfo
impl Sync for DeviceCodeInfo
impl Unpin for DeviceCodeInfo
impl UnwindSafe for DeviceCodeInfo
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