pub struct DeviceAuthResponse {
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
Device authorization response
Fields§
§device_code: StringDevice code (for polling)
user_code: StringUser code (to enter on verification page)
verification_uri: StringVerification URI
verification_uri_complete: Option<String>Verification URI with code pre-filled (optional)
expires_in: u64Expiration in seconds
interval: u64Polling interval in seconds
Trait Implementations§
Source§impl Clone for DeviceAuthResponse
impl Clone for DeviceAuthResponse
Source§fn clone(&self) -> DeviceAuthResponse
fn clone(&self) -> DeviceAuthResponse
Returns a duplicate 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 moreSource§impl Debug for DeviceAuthResponse
impl Debug for DeviceAuthResponse
Source§impl<'de> Deserialize<'de> for DeviceAuthResponse
impl<'de> Deserialize<'de> for DeviceAuthResponse
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 DeviceAuthResponse
impl RefUnwindSafe for DeviceAuthResponse
impl Send for DeviceAuthResponse
impl Sync for DeviceAuthResponse
impl Unpin for DeviceAuthResponse
impl UnwindSafe for DeviceAuthResponse
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