Struct cobble_core::profile::DeviceCodeInfo
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more