pub struct EmailAuthentication {
pub email: String,
pub type_: EmailAuthenticationType,
}
Expand description
Information about an end user who authenticates using a one-time password sent to their email address.
JSON schema
{
"title": "EmailAuthentication",
"description": "Information about an end user who authenticates using a one-time password sent to their email address.",
"type": "object",
"required": [
"email",
"type"
],
"properties": {
"email": {
"description": "The email address of the end user.",
"examples": [
"user@example.com"
],
"type": "string",
"format": "email"
},
"type": {
"description": "The type of authentication information.",
"examples": [
"email"
],
"type": "string",
"enum": [
"email"
]
}
}
}
Fields§
§email: String
The email address of the end user.
type_: EmailAuthenticationType
The type of authentication information.
Implementations§
Source§impl EmailAuthentication
impl EmailAuthentication
pub fn builder() -> EmailAuthentication
Trait Implementations§
Source§impl Clone for EmailAuthentication
impl Clone for EmailAuthentication
Source§fn clone(&self) -> EmailAuthentication
fn clone(&self) -> EmailAuthentication
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 EmailAuthentication
impl Debug for EmailAuthentication
Source§impl<'de> Deserialize<'de> for EmailAuthentication
impl<'de> Deserialize<'de> for EmailAuthentication
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<&EmailAuthentication> for EmailAuthentication
impl From<&EmailAuthentication> for EmailAuthentication
Source§fn from(value: &EmailAuthentication) -> Self
fn from(value: &EmailAuthentication) -> 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<EmailAuthentication> for EmailAuthentication
impl From<EmailAuthentication> for EmailAuthentication
Source§fn from(value: EmailAuthentication) -> Self
fn from(value: EmailAuthentication) -> Self
Converts to this type from the input type.
Source§impl Serialize for EmailAuthentication
impl Serialize for EmailAuthentication
Source§impl TryFrom<EmailAuthentication> for EmailAuthentication
impl TryFrom<EmailAuthentication> for EmailAuthentication
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EmailAuthentication) -> Result<Self, ConversionError>
fn try_from(value: EmailAuthentication) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EmailAuthentication
impl RefUnwindSafe for EmailAuthentication
impl Send for EmailAuthentication
impl Sync for EmailAuthentication
impl Unpin for EmailAuthentication
impl UnwindSafe for EmailAuthentication
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