pub struct PhoneNumberAuthenticationSettings { /* private fields */ }
Expand description
Contains settings for the authentication of the user’s phone number
Implementations§
Source§impl PhoneNumberAuthenticationSettings
impl PhoneNumberAuthenticationSettings
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> PhoneNumberAuthenticationSettingsBuilder
pub fn allow_flash_call(&self) -> bool
pub fn allow_missed_call(&self) -> bool
pub fn is_current_phone_number(&self) -> bool
pub fn allow_sms_retriever_api(&self) -> bool
pub fn authentication_tokens(&self) -> &Vec<String>
Trait Implementations§
Source§impl AsRef<PhoneNumberAuthenticationSettings> for PhoneNumberAuthenticationSettings
impl AsRef<PhoneNumberAuthenticationSettings> for PhoneNumberAuthenticationSettings
Source§fn as_ref(&self) -> &PhoneNumberAuthenticationSettings
fn as_ref(&self) -> &PhoneNumberAuthenticationSettings
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PhoneNumberAuthenticationSettings
impl Clone for PhoneNumberAuthenticationSettings
Source§fn clone(&self) -> PhoneNumberAuthenticationSettings
fn clone(&self) -> PhoneNumberAuthenticationSettings
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 Default for PhoneNumberAuthenticationSettings
impl Default for PhoneNumberAuthenticationSettings
Source§fn default() -> PhoneNumberAuthenticationSettings
fn default() -> PhoneNumberAuthenticationSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PhoneNumberAuthenticationSettings
impl<'de> Deserialize<'de> for PhoneNumberAuthenticationSettings
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 PhoneNumberAuthenticationSettings
impl RefUnwindSafe for PhoneNumberAuthenticationSettings
impl Send for PhoneNumberAuthenticationSettings
impl Sync for PhoneNumberAuthenticationSettings
impl Unpin for PhoneNumberAuthenticationSettings
impl UnwindSafe for PhoneNumberAuthenticationSettings
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