pub struct PhoneAuthenticationUserId(/* private fields */);Expand description
User identifier forwarded by the phone to its authentication service.
Implementations§
Source§impl PhoneAuthenticationUserId
impl PhoneAuthenticationUserId
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 PhoneAuthenticationUserId
impl Clone for PhoneAuthenticationUserId
Source§fn clone(&self) -> PhoneAuthenticationUserId
fn clone(&self) -> PhoneAuthenticationUserId
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 PhoneAuthenticationUserId
impl Debug for PhoneAuthenticationUserId
impl Eq for PhoneAuthenticationUserId
Source§impl Hash for PhoneAuthenticationUserId
impl Hash for PhoneAuthenticationUserId
impl StructuralPartialEq for PhoneAuthenticationUserId
Auto Trait Implementations§
impl Freeze for PhoneAuthenticationUserId
impl RefUnwindSafe for PhoneAuthenticationUserId
impl Send for PhoneAuthenticationUserId
impl Sync for PhoneAuthenticationUserId
impl Unpin for PhoneAuthenticationUserId
impl UnsafeUnpin for PhoneAuthenticationUserId
impl UnwindSafe for PhoneAuthenticationUserId
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