pub enum OAuthGrant {
Device,
AuthorizationCode,
ClientCredentials,
}Expand description
The OAuth 2.1 grant type.
Variants§
Device
RFC 8628 device authorization — the interactive default.
AuthorizationCode
RFC 7636 authorization-code + PKCE (browser loopback).
ClientCredentials
The headless machine-to-machine grant.
Trait Implementations§
Source§impl Clone for OAuthGrant
impl Clone for OAuthGrant
Source§fn clone(&self) -> OAuthGrant
fn clone(&self) -> OAuthGrant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OAuthGrant
Source§impl Debug for OAuthGrant
impl Debug for OAuthGrant
Source§impl<'de> Deserialize<'de> for OAuthGrant
impl<'de> Deserialize<'de> for OAuthGrant
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
impl Eq for OAuthGrant
Source§impl PartialEq for OAuthGrant
impl PartialEq for OAuthGrant
impl StructuralPartialEq for OAuthGrant
Auto Trait Implementations§
impl Freeze for OAuthGrant
impl RefUnwindSafe for OAuthGrant
impl Send for OAuthGrant
impl Sync for OAuthGrant
impl Unpin for OAuthGrant
impl UnsafeUnpin for OAuthGrant
impl UnwindSafe for OAuthGrant
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