pub struct DeviceAuthorization {
pub device_code: Option<String>,
pub expires_in: Option<i64>,
pub interval: Option<i64>,
pub user_code: Option<String>,
pub verification_uri: Option<String>,
pub verification_uri_complete: Option<String>,
}Expand description
DeviceAuthorization : # Ory’s OAuth 2.0 Device Authorization API
Fields§
§device_code: Option<String>The device verification code.
expires_in: Option<i64>The lifetime in seconds of the "device_code" and "user_code".
interval: Option<i64>The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
user_code: Option<String>The end-user verification code.
verification_uri: Option<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.
Implementations§
Source§impl DeviceAuthorization
impl DeviceAuthorization
Sourcepub fn new() -> DeviceAuthorization
pub fn new() -> DeviceAuthorization
§Ory’s OAuth 2.0 Device Authorization API
Trait Implementations§
Source§impl Clone for DeviceAuthorization
impl Clone for DeviceAuthorization
Source§fn clone(&self) -> DeviceAuthorization
fn clone(&self) -> DeviceAuthorization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceAuthorization
impl Debug for DeviceAuthorization
Source§impl Default for DeviceAuthorization
impl Default for DeviceAuthorization
Source§fn default() -> DeviceAuthorization
fn default() -> DeviceAuthorization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceAuthorization
impl<'de> Deserialize<'de> for DeviceAuthorization
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
Source§impl PartialEq for DeviceAuthorization
impl PartialEq for DeviceAuthorization
Source§impl Serialize for DeviceAuthorization
impl Serialize for DeviceAuthorization
impl StructuralPartialEq for DeviceAuthorization
Auto Trait Implementations§
impl Freeze for DeviceAuthorization
impl RefUnwindSafe for DeviceAuthorization
impl Send for DeviceAuthorization
impl Sync for DeviceAuthorization
impl Unpin for DeviceAuthorization
impl UnwindSafe for DeviceAuthorization
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