Struct yup_oauth2::authenticator_delegate::DeviceAuthResponse [−][src]
pub struct DeviceAuthResponse {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub expires_at: DateTime<Utc>,
pub interval: Duration,
}
Expand description
Contains state of pending authentication requests
Fields
device_code: String
The device verification code.
user_code: String
Code the user must enter …
verification_uri: String
… at the verification URI
expires_at: DateTime<Utc>
The user_code
expires at the given time
It’s the time the user has left to authenticate your application
interval: Duration
The interval in which we may poll for a status change The server responds with errors of we poll too fast.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DeviceAuthResponse
impl Send for DeviceAuthResponse
impl Sync for DeviceAuthResponse
impl Unpin for DeviceAuthResponse
impl UnwindSafe for DeviceAuthResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more