pub struct PasswordState { /* private fields */ }
Expand description
Represents the current state of 2-step verification
Implementations§
Source§impl 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§
Source§impl AsRef<PasswordState> for PasswordState
impl AsRef<PasswordState> for PasswordState
Source§fn as_ref(&self) -> &PasswordState
fn as_ref(&self) -> &PasswordState
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PasswordState
impl Clone for PasswordState
Source§fn clone(&self) -> PasswordState
fn clone(&self) -> PasswordState
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 PasswordState
impl Debug for PasswordState
Source§impl Default for PasswordState
impl Default for PasswordState
Source§fn default() -> PasswordState
fn default() -> PasswordState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PasswordState
impl<'de> Deserialize<'de> for PasswordState
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 PasswordState
impl RefUnwindSafe for PasswordState
impl Send for PasswordState
impl Sync for PasswordState
impl Unpin for PasswordState
impl UnwindSafe for PasswordState
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