pub enum AuthProvider {
AwsCognito(ProviderAwsCognito),
GoogleIdentity(ProviderGoogleIdentity),
}
Expand description
AuthProvider
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"AwsCognito"
],
"properties": {
"AwsCognito": {
"$ref": "#/components/schemas/ProviderAwsCognito"
}
}
},
{
"type": "object",
"required": [
"GoogleIdentity"
],
"properties": {
"GoogleIdentity": {
"$ref": "#/components/schemas/ProviderGoogleIdentity"
}
}
}
]
}
Variants§
AwsCognito(ProviderAwsCognito)
GoogleIdentity(ProviderGoogleIdentity)
Trait Implementations§
Source§impl Clone for AuthProvider
impl Clone for AuthProvider
Source§fn clone(&self) -> AuthProvider
fn clone(&self) -> AuthProvider
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 AuthProvider
impl Debug for AuthProvider
Source§impl<'de> Deserialize<'de> for AuthProvider
impl<'de> Deserialize<'de> for AuthProvider
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 From<&AuthProvider> for AuthProvider
impl From<&AuthProvider> for AuthProvider
Source§fn from(value: &AuthProvider) -> Self
fn from(value: &AuthProvider) -> Self
Converts to this type from the input type.
Source§impl From<ProviderAwsCognito> for AuthProvider
impl From<ProviderAwsCognito> for AuthProvider
Source§fn from(value: ProviderAwsCognito) -> Self
fn from(value: ProviderAwsCognito) -> Self
Converts to this type from the input type.
Source§impl From<ProviderGoogleIdentity> for AuthProvider
impl From<ProviderGoogleIdentity> for AuthProvider
Source§fn from(value: ProviderGoogleIdentity) -> Self
fn from(value: ProviderGoogleIdentity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthProvider
impl RefUnwindSafe for AuthProvider
impl Send for AuthProvider
impl Sync for AuthProvider
impl Unpin for AuthProvider
impl UnwindSafe for AuthProvider
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