pub struct PhoneAuthenticationPassword(/* private fields */);Expand description
Password forwarded by the phone to its authentication service.
Implementations§
Source§impl PhoneAuthenticationPassword
impl PhoneAuthenticationPassword
Sourcepub fn new(value: impl Into<String>) -> Result<Self, PhoneAuthenticationError>
pub fn new(value: impl Into<String>) -> Result<Self, PhoneAuthenticationError>
Validates and wraps a credential without exposing it through diagnostics.
Sourcepub fn expose_secret(&self) -> &str
pub fn expose_secret(&self) -> &str
Exposes the credential only to an authentication policy implementation.
Trait Implementations§
Source§impl Clone for PhoneAuthenticationPassword
impl Clone for PhoneAuthenticationPassword
Source§fn clone(&self) -> PhoneAuthenticationPassword
fn clone(&self) -> PhoneAuthenticationPassword
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PhoneAuthenticationPassword
impl Debug for PhoneAuthenticationPassword
impl Eq for PhoneAuthenticationPassword
Source§impl Hash for PhoneAuthenticationPassword
impl Hash for PhoneAuthenticationPassword
impl StructuralPartialEq for PhoneAuthenticationPassword
Auto Trait Implementations§
impl Freeze for PhoneAuthenticationPassword
impl RefUnwindSafe for PhoneAuthenticationPassword
impl Send for PhoneAuthenticationPassword
impl Sync for PhoneAuthenticationPassword
impl Unpin for PhoneAuthenticationPassword
impl UnsafeUnpin for PhoneAuthenticationPassword
impl UnwindSafe for PhoneAuthenticationPassword
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