Struct rust_tdlib::types::PasswordState
source · [−]pub struct PasswordState { /* private fields */ }
Expand description
Represents the current state of 2-step verification
Implementations
sourceimpl PasswordState
impl PasswordState
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PasswordStateBuilder
pub fn has_password(&self) -> bool
pub fn password_hint(&self) -> &String
pub fn has_recovery_email_address(&self) -> bool
pub fn has_passport_data(&self) -> bool
pub fn recovery_email_address_code_info(
&self
) -> &Option<EmailAddressAuthenticationCodeInfo>
pub fn pending_reset_date(&self) -> i32
Trait Implementations
sourceimpl AsRef<PasswordState> for PasswordState
impl AsRef<PasswordState> for PasswordState
sourcefn as_ref(&self) -> &PasswordState
fn as_ref(&self) -> &PasswordState
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for PasswordState
impl Clone for PasswordState
sourcefn clone(&self) -> PasswordState
fn clone(&self) -> PasswordState
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 PasswordState
impl Debug for PasswordState
sourceimpl Default for PasswordState
impl Default for PasswordState
sourcefn default() -> PasswordState
fn default() -> PasswordState
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PasswordState
impl<'de> Deserialize<'de> for PasswordState
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 PasswordState
impl Serialize for PasswordState
Auto Trait Implementations
impl RefUnwindSafe for PasswordState
impl Send for PasswordState
impl Sync for PasswordState
impl Unpin for PasswordState
impl UnwindSafe for PasswordState
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