Struct matrix_sdk::oidc::types::requests::DeviceAuthorizationResponse
pub struct DeviceAuthorizationResponse {
pub device_code: String,
pub user_code: String,
pub verification_uri: Url,
pub verification_uri_complete: Option<Url>,
pub expires_in: TimeDelta,
pub interval: Option<TimeDelta>,
}
experimental-oidc
only.Expand description
A successful response from the Device Authorization Endpoint.
Fields§
§device_code: String
The device verification code.
user_code: String
The end-user verification code.
verification_uri: Url
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<Url>
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.
expires_in: TimeDelta
The lifetime of the device_code
and user_code
.
interval: Option<TimeDelta>
The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
Defaults to DEFAULT_DEVICE_AUTHORIZATION_INTERVAL
.
Implementations§
§impl DeviceAuthorizationResponse
impl DeviceAuthorizationResponse
pub fn interval(&self) -> TimeDelta
pub fn interval(&self) -> TimeDelta
The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
Defaults to DEFAULT_DEVICE_AUTHORIZATION_INTERVAL
.
Trait Implementations§
§impl Clone for DeviceAuthorizationResponse
impl Clone for DeviceAuthorizationResponse
§fn clone(&self) -> DeviceAuthorizationResponse
fn clone(&self) -> DeviceAuthorizationResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for DeviceAuthorizationResponse
impl Debug for DeviceAuthorizationResponse
§impl<'de> Deserialize<'de> for DeviceAuthorizationResponse
impl<'de> Deserialize<'de> for DeviceAuthorizationResponse
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DeviceAuthorizationResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DeviceAuthorizationResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl PartialEq for DeviceAuthorizationResponse
impl PartialEq for DeviceAuthorizationResponse
§fn eq(&self, other: &DeviceAuthorizationResponse) -> bool
fn eq(&self, other: &DeviceAuthorizationResponse) -> bool
self
and other
values to be equal, and is used
by ==
.§impl Serialize for DeviceAuthorizationResponse
impl Serialize for DeviceAuthorizationResponse
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for DeviceAuthorizationResponse
impl StructuralPartialEq for DeviceAuthorizationResponse
Auto Trait Implementations§
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>