pub struct SmsAuthentication {
pub phone_number: SmsAuthenticationPhoneNumber,
pub type_: SmsAuthenticationType,
}
Expand description
Information about an end user who authenticates using a one-time password sent to their phone number via SMS.
JSON schema
{
"title": "SmsAuthentication",
"description": "Information about an end user who authenticates using a one-time password sent to their phone number via SMS.",
"type": "object",
"required": [
"phoneNumber",
"type"
],
"properties": {
"phoneNumber": {
"description": "The phone number of the end user in E.164 format.",
"examples": [
"+12055555555"
],
"type": "string",
"pattern": "^\\+[1-9]\\d{1,14}$"
},
"type": {
"description": "The type of authentication information.",
"examples": [
"sms"
],
"type": "string",
"enum": [
"sms"
]
}
}
}
Fields§
§phone_number: SmsAuthenticationPhoneNumber
The phone number of the end user in E.164 format.
type_: SmsAuthenticationType
The type of authentication information.
Implementations§
Source§impl SmsAuthentication
impl SmsAuthentication
pub fn builder() -> SmsAuthentication
Trait Implementations§
Source§impl Clone for SmsAuthentication
impl Clone for SmsAuthentication
Source§fn clone(&self) -> SmsAuthentication
fn clone(&self) -> SmsAuthentication
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 SmsAuthentication
impl Debug for SmsAuthentication
Source§impl<'de> Deserialize<'de> for SmsAuthentication
impl<'de> Deserialize<'de> for SmsAuthentication
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<&SmsAuthentication> for SmsAuthentication
impl From<&SmsAuthentication> for SmsAuthentication
Source§fn from(value: &SmsAuthentication) -> Self
fn from(value: &SmsAuthentication) -> 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.
Source§impl From<SmsAuthentication> for SmsAuthentication
impl From<SmsAuthentication> for SmsAuthentication
Source§fn from(value: SmsAuthentication) -> Self
fn from(value: SmsAuthentication) -> Self
Converts to this type from the input type.
Source§impl Serialize for SmsAuthentication
impl Serialize for SmsAuthentication
Source§impl TryFrom<SmsAuthentication> for SmsAuthentication
impl TryFrom<SmsAuthentication> for SmsAuthentication
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SmsAuthentication) -> Result<Self, ConversionError>
fn try_from(value: SmsAuthentication) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SmsAuthentication
impl RefUnwindSafe for SmsAuthentication
impl Send for SmsAuthentication
impl Sync for SmsAuthentication
impl Unpin for SmsAuthentication
impl UnwindSafe for SmsAuthentication
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