pub struct DeviceAuthorizationResponse {
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub user_code: String,
pub device_code: String,
pub expires_in: u64,
pub interval: Option<u64>,
}
Expand description
§DeviceAuthorizationResponse
The response from OP for a Device Authorization.
Fields§
§verification_uri: String
The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent.
verification_uri_complete: Option<String>
A verification URI that includes the “user_code” (or other information with the same function as the “user_code”), which is designed for non-textual transmission.
user_code: String
The end user verification code
device_code: String
The device code
expires_in: u64
The lifetime in seconds of the “device_code” and “user_code”.
interval: Option<u64>
The minimum amount of time in seconds that the client waits between polling requests to the token endpoint. If no value is provided, 5 seconds is used by default
Trait Implementations§
Source§impl Debug for DeviceAuthorizationResponse
impl Debug for DeviceAuthorizationResponse
Source§impl<'de> Deserialize<'de> for DeviceAuthorizationResponse
impl<'de> Deserialize<'de> for DeviceAuthorizationResponse
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 DeviceAuthorizationResponse
impl RefUnwindSafe for DeviceAuthorizationResponse
impl Send for DeviceAuthorizationResponse
impl Sync for DeviceAuthorizationResponse
impl Unpin for DeviceAuthorizationResponse
impl UnwindSafe for DeviceAuthorizationResponse
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