pub struct DeviceCodeResponse {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub expires_in: u64,
pub interval: u64,
}Expand description
OAuth 2.0 device authorization grant response (RFC 8628 §3.2).
Returned by OAuthDeviceFlowProvider::request_device_code.
The CLI displays user_code + verification_uri to the user,
then polls with device_code.
Fields§
§device_code: StringOpaque device verification code used to poll for the token.
user_code: StringShort user-facing code to enter at verification_uri.
verification_uri: StringURL where the user enters user_code.
expires_in: u64Duration in seconds until expiration (per RFC 6749).
interval: u64Minimum polling interval in seconds.
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