pub struct DeviceCodeResponse {
pub user_code: String,
pub device_code: String,
pub verification_uri: String,
pub interval: u64,
pub expires_in: u64,
}Expand description
Response from POST /login/device/code.
Fields§
§user_code: StringThe device verification code (shown to the user).
device_code: StringThe device code (used for polling).
verification_uri: StringThe URL the user should visit to enter the code.
interval: u64The polling interval in seconds.
expires_in: u64The lifetime of the device code in seconds.
Trait Implementations§
Source§impl Debug for DeviceCodeResponse
impl Debug for DeviceCodeResponse
Source§impl<'de> Deserialize<'de> for DeviceCodeResponse
impl<'de> Deserialize<'de> for DeviceCodeResponse
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 DeviceCodeResponse
impl RefUnwindSafe for DeviceCodeResponse
impl Send for DeviceCodeResponse
impl Sync for DeviceCodeResponse
impl Unpin for DeviceCodeResponse
impl UnsafeUnpin for DeviceCodeResponse
impl UnwindSafe for DeviceCodeResponse
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