pub struct DeviceAuthorization {
pub user_code: String,
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub expires_in_secs: u64,
pub interval_secs: u64,
pub issued_at_ms: u64,
/* private fields */
}Fields§
§user_code: String§verification_uri: String§verification_uri_complete: Option<String>verification_uri_complete when the server sent a valid one.
expires_in_secs: u64§interval_secs: u64§issued_at_ms: u64Implementations§
Source§impl DeviceAuthorization
impl DeviceAuthorization
Sourcepub fn browser_uri(&self) -> &str
pub fn browser_uri(&self) -> &str
URI to open in the browser: the complete form (code pre-filled) when available, otherwise the bare verification page.
Trait Implementations§
Source§impl Clone for DeviceAuthorization
impl Clone for DeviceAuthorization
Auto Trait Implementations§
impl Freeze for DeviceAuthorization
impl RefUnwindSafe for DeviceAuthorization
impl Send for DeviceAuthorization
impl Sync for DeviceAuthorization
impl Unpin for DeviceAuthorization
impl UnsafeUnpin for DeviceAuthorization
impl UnwindSafe for DeviceAuthorization
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