pub enum AuthenticationMethod {
EmailAuthentication(EmailAuthentication),
SmsAuthentication(SmsAuthentication),
DeveloperJwtAuthentication(DeveloperJwtAuthentication),
}
Expand description
Information about how the end user is authenticated.
JSON schema
{
"description": "Information about how the end user is authenticated.",
"oneOf": [
{
"$ref": "#/components/schemas/EmailAuthentication"
},
{
"$ref": "#/components/schemas/SmsAuthentication"
},
{
"$ref": "#/components/schemas/DeveloperJWTAuthentication"
}
]
}
Variants§
EmailAuthentication(EmailAuthentication)
SmsAuthentication(SmsAuthentication)
DeveloperJwtAuthentication(DeveloperJwtAuthentication)
Trait Implementations§
Source§impl Clone for AuthenticationMethod
impl Clone for AuthenticationMethod
Source§fn clone(&self) -> AuthenticationMethod
fn clone(&self) -> AuthenticationMethod
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 AuthenticationMethod
impl Debug for AuthenticationMethod
Source§impl<'de> Deserialize<'de> for AuthenticationMethod
impl<'de> Deserialize<'de> for AuthenticationMethod
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<&AuthenticationMethod> for AuthenticationMethod
impl From<&AuthenticationMethod> for AuthenticationMethod
Source§fn from(value: &AuthenticationMethod) -> Self
fn from(value: &AuthenticationMethod) -> Self
Converts to this type from the input type.
Source§impl From<DeveloperJwtAuthentication> for AuthenticationMethod
impl From<DeveloperJwtAuthentication> for AuthenticationMethod
Source§fn from(value: DeveloperJwtAuthentication) -> Self
fn from(value: DeveloperJwtAuthentication) -> Self
Converts to this type from the input type.
Source§impl From<EmailAuthentication> for AuthenticationMethod
impl From<EmailAuthentication> for AuthenticationMethod
Source§fn from(value: EmailAuthentication) -> Self
fn from(value: EmailAuthentication) -> Self
Converts to this type from the input type.
Source§impl From<SmsAuthentication> for AuthenticationMethod
impl From<SmsAuthentication> for AuthenticationMethod
Source§fn from(value: SmsAuthentication) -> Self
fn from(value: SmsAuthentication) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthenticationMethod
impl RefUnwindSafe for AuthenticationMethod
impl Send for AuthenticationMethod
impl Sync for AuthenticationMethod
impl Unpin for AuthenticationMethod
impl UnwindSafe for AuthenticationMethod
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