pub struct DeviceCodeResponse {
pub device_code: String,
pub user_code: String,
pub verification_url: String,
pub expires_in: u32,
pub interval: u32,
}Expand description
Response body from POST /oauth/device/code.
expires_in and interval are seconds; poll no more often than
interval and give up after expires_in.
Fields§
§device_code: StringOpaque code the client sends to /oauth/token to redeem for a bearer token.
user_code: StringShort human-friendly code the user types on the verification URL.
verification_url: StringURL the user must open in a browser to enter user_code.
expires_in: u32Lifetime of the device code in seconds.
interval: u32Minimum polling interval 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