pub struct AuthenticationCodeInfo { /* private fields */ }
Expand description
Information about the authentication code that was sent
Implementations§
Source§impl AuthenticationCodeInfo
impl AuthenticationCodeInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AuthenticationCodeInfoBuilder
pub fn phone_number(&self) -> &String
pub fn type_(&self) -> &AuthenticationCodeType
pub fn next_type(&self) -> &Option<AuthenticationCodeType>
pub fn timeout(&self) -> i32
Trait Implementations§
Source§impl AsRef<AuthenticationCodeInfo> for AuthenticationCodeInfo
impl AsRef<AuthenticationCodeInfo> for AuthenticationCodeInfo
Source§fn as_ref(&self) -> &AuthenticationCodeInfo
fn as_ref(&self) -> &AuthenticationCodeInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for AuthenticationCodeInfo
impl Clone for AuthenticationCodeInfo
Source§fn clone(&self) -> AuthenticationCodeInfo
fn clone(&self) -> AuthenticationCodeInfo
Returns a copy 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 AuthenticationCodeInfo
impl Debug for AuthenticationCodeInfo
Source§impl Default for AuthenticationCodeInfo
impl Default for AuthenticationCodeInfo
Source§fn default() -> AuthenticationCodeInfo
fn default() -> AuthenticationCodeInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthenticationCodeInfo
impl<'de> Deserialize<'de> for AuthenticationCodeInfo
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
Auto Trait Implementations§
impl Freeze for AuthenticationCodeInfo
impl RefUnwindSafe for AuthenticationCodeInfo
impl Send for AuthenticationCodeInfo
impl Sync for AuthenticationCodeInfo
impl Unpin for AuthenticationCodeInfo
impl UnwindSafe for AuthenticationCodeInfo
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