Struct rust_tdlib::types::AuthenticationCodeInfo
source · 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