pub enum ExternalOAuthProviderId {
Apple,
Discord,
Github,
Google,
Instagram,
Line,
Linkedin,
Spotify,
Tiktok,
Twitch,
Twitter,
}Expand description
The ID of an external OAuth provider.
JSON schema
{
"title": "ExternalOAuthProviderID",
"description": "The ID of an external OAuth provider.",
"type": "string",
"enum": [
"apple",
"discord",
"github",
"google",
"instagram",
"line",
"linkedin",
"spotify",
"tiktok",
"twitch",
"twitter"
],
"x-stainless-model": "client_auth.external_oauth_provider_id"
}Variants§
Trait Implementations§
Source§impl Clone for ExternalOAuthProviderId
impl Clone for ExternalOAuthProviderId
Source§fn clone(&self) -> ExternalOAuthProviderId
fn clone(&self) -> ExternalOAuthProviderId
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 ExternalOAuthProviderId
impl Debug for ExternalOAuthProviderId
Source§impl<'de> Deserialize<'de> for ExternalOAuthProviderId
impl<'de> Deserialize<'de> for ExternalOAuthProviderId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalOAuthProviderId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalOAuthProviderId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExternalOAuthProviderId
impl Display for ExternalOAuthProviderId
Source§impl From<&ExternalOAuthProviderId> for ExternalOAuthProviderId
impl From<&ExternalOAuthProviderId> for ExternalOAuthProviderId
Source§fn from(value: &ExternalOAuthProviderId) -> ExternalOAuthProviderId
fn from(value: &ExternalOAuthProviderId) -> ExternalOAuthProviderId
Converts to this type from the input type.
Source§impl From<ExternalOAuthProviderId> for OAuthProviderId
impl From<ExternalOAuthProviderId> for OAuthProviderId
Source§fn from(value: ExternalOAuthProviderId) -> OAuthProviderId
fn from(value: ExternalOAuthProviderId) -> OAuthProviderId
Converts to this type from the input type.
Source§impl FromStr for ExternalOAuthProviderId
impl FromStr for ExternalOAuthProviderId
Source§type Err = ConversionError
type Err = ConversionError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<ExternalOAuthProviderId, ConversionError>
fn from_str(value: &str) -> Result<ExternalOAuthProviderId, ConversionError>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ExternalOAuthProviderId
impl Hash for ExternalOAuthProviderId
Source§impl Ord for ExternalOAuthProviderId
impl Ord for ExternalOAuthProviderId
Source§fn cmp(&self, other: &ExternalOAuthProviderId) -> Ordering
fn cmp(&self, other: &ExternalOAuthProviderId) -> Ordering
1.21.0 · 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 ExternalOAuthProviderId
impl PartialEq for ExternalOAuthProviderId
Source§impl PartialOrd for ExternalOAuthProviderId
impl PartialOrd for ExternalOAuthProviderId
Source§impl Serialize for ExternalOAuthProviderId
impl Serialize for ExternalOAuthProviderId
Source§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,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&String> for ExternalOAuthProviderId
impl TryFrom<&String> for ExternalOAuthProviderId
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &String) -> Result<ExternalOAuthProviderId, ConversionError>
fn try_from(value: &String) -> Result<ExternalOAuthProviderId, ConversionError>
Performs the conversion.
Source§impl TryFrom<&str> for ExternalOAuthProviderId
impl TryFrom<&str> for ExternalOAuthProviderId
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> Result<ExternalOAuthProviderId, ConversionError>
fn try_from(value: &str) -> Result<ExternalOAuthProviderId, ConversionError>
Performs the conversion.
Source§impl TryFrom<String> for ExternalOAuthProviderId
impl TryFrom<String> for ExternalOAuthProviderId
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: String) -> Result<ExternalOAuthProviderId, ConversionError>
fn try_from(value: String) -> Result<ExternalOAuthProviderId, ConversionError>
Performs the conversion.
impl Copy for ExternalOAuthProviderId
impl Eq for ExternalOAuthProviderId
impl StructuralPartialEq for ExternalOAuthProviderId
Auto Trait Implementations§
impl Freeze for ExternalOAuthProviderId
impl RefUnwindSafe for ExternalOAuthProviderId
impl Send for ExternalOAuthProviderId
impl Sync for ExternalOAuthProviderId
impl Unpin for ExternalOAuthProviderId
impl UnwindSafe for ExternalOAuthProviderId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.