pub enum OAuthTokenGrantType {
AuthorizationCode,
RefreshToken,
UrnIetfParamsOauthGrantTypeDeviceCode,
}Expand description
The OAuth grant type for the token request.
JSON schema
{
"title": "OAuthTokenGrantType",
"description": "The OAuth grant type for the token request.",
"type": "string",
"enum": [
"authorization_code",
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code"
],
"x-stainless-model": "client_auth.oauth_token_grant_type"
}Variants§
Trait Implementations§
Source§impl Clone for OAuthTokenGrantType
impl Clone for OAuthTokenGrantType
Source§fn clone(&self) -> OAuthTokenGrantType
fn clone(&self) -> OAuthTokenGrantType
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 OAuthTokenGrantType
Source§impl Debug for OAuthTokenGrantType
impl Debug for OAuthTokenGrantType
Source§impl<'de> Deserialize<'de> for OAuthTokenGrantType
impl<'de> Deserialize<'de> for OAuthTokenGrantType
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 Display for OAuthTokenGrantType
impl Display for OAuthTokenGrantType
impl Eq for OAuthTokenGrantType
Source§impl From<&OAuthTokenGrantType> for OAuthTokenGrantType
impl From<&OAuthTokenGrantType> for OAuthTokenGrantType
Source§fn from(value: &OAuthTokenGrantType) -> Self
fn from(value: &OAuthTokenGrantType) -> Self
Converts to this type from the input type.
Source§impl FromStr for OAuthTokenGrantType
impl FromStr for OAuthTokenGrantType
Source§impl Hash for OAuthTokenGrantType
impl Hash for OAuthTokenGrantType
Source§impl Ord for OAuthTokenGrantType
impl Ord for OAuthTokenGrantType
Source§fn cmp(&self, other: &OAuthTokenGrantType) -> Ordering
fn cmp(&self, other: &OAuthTokenGrantType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OAuthTokenGrantType
impl PartialEq for OAuthTokenGrantType
Source§fn eq(&self, other: &OAuthTokenGrantType) -> bool
fn eq(&self, other: &OAuthTokenGrantType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OAuthTokenGrantType
impl PartialOrd for OAuthTokenGrantType
Source§impl Serialize for OAuthTokenGrantType
impl Serialize for OAuthTokenGrantType
impl StructuralPartialEq for OAuthTokenGrantType
Source§impl TryFrom<&String> for OAuthTokenGrantType
impl TryFrom<&String> for OAuthTokenGrantType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for OAuthTokenGrantType
impl TryFrom<&str> for OAuthTokenGrantType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for OAuthTokenGrantType
impl TryFrom<String> for OAuthTokenGrantType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for OAuthTokenGrantType
impl RefUnwindSafe for OAuthTokenGrantType
impl Send for OAuthTokenGrantType
impl Sync for OAuthTokenGrantType
impl Unpin for OAuthTokenGrantType
impl UnsafeUnpin for OAuthTokenGrantType
impl UnwindSafe for OAuthTokenGrantType
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