Struct rust_tdlib::types::AuthenticationCodeInfo
source · [−]pub struct AuthenticationCodeInfo { /* private fields */ }Expand description
Information about the authentication code that was sent
Implementations
sourceimpl 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
sourceimpl AsRef<AuthenticationCodeInfo> for AuthenticationCodeInfo
impl AsRef<AuthenticationCodeInfo> for AuthenticationCodeInfo
sourcefn as_ref(&self) -> &AuthenticationCodeInfo
fn as_ref(&self) -> &AuthenticationCodeInfo
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for AuthenticationCodeInfo
impl Clone for AuthenticationCodeInfo
sourcefn clone(&self) -> AuthenticationCodeInfo
fn clone(&self) -> AuthenticationCodeInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AuthenticationCodeInfo
impl Debug for AuthenticationCodeInfo
sourceimpl Default for AuthenticationCodeInfo
impl Default for AuthenticationCodeInfo
sourcefn default() -> AuthenticationCodeInfo
fn default() -> AuthenticationCodeInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AuthenticationCodeInfo
impl<'de> Deserialize<'de> for AuthenticationCodeInfo
sourcefn 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
sourceimpl Serialize for AuthenticationCodeInfo
impl Serialize for AuthenticationCodeInfo
Auto Trait Implementations
impl RefUnwindSafe for AuthenticationCodeInfo
impl Send for AuthenticationCodeInfo
impl Sync for AuthenticationCodeInfo
impl Unpin for AuthenticationCodeInfo
impl UnwindSafe for AuthenticationCodeInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more