pub struct PhoneAuthenticationRequest {
pub user_id: PhoneAuthenticationUserId,
pub password: PhoneAuthenticationPassword,
pub device_id: DeviceId,
}Expand description
The three fields supplied to the configured phone authentication URL.
Debug output redacts the user ID and password while retaining the device ID for session diagnostics.
Fields§
§user_id: PhoneAuthenticationUserId§password: PhoneAuthenticationPassword§device_id: DeviceIdImplementations§
Source§impl PhoneAuthenticationRequest
impl PhoneAuthenticationRequest
Sourcepub fn parse_query(query: &[u8]) -> Result<Self, PhoneAuthenticationError>
pub fn parse_query(query: &[u8]) -> Result<Self, PhoneAuthenticationError>
Parses an application/x-www-form-urlencoded query with exact field
names UserID, Password, and devicename.
Sourcepub fn from_fields<I, N, V>(fields: I) -> Result<Self, PhoneAuthenticationError>
pub fn from_fields<I, N, V>(fields: I) -> Result<Self, PhoneAuthenticationError>
Validates fields already decoded by a standards-based HTTP boundary.
Trait Implementations§
Source§impl Clone for PhoneAuthenticationRequest
impl Clone for PhoneAuthenticationRequest
Source§fn clone(&self) -> PhoneAuthenticationRequest
fn clone(&self) -> PhoneAuthenticationRequest
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 PhoneAuthenticationRequest
impl Debug for PhoneAuthenticationRequest
impl Eq for PhoneAuthenticationRequest
impl StructuralPartialEq for PhoneAuthenticationRequest
Auto Trait Implementations§
impl Freeze for PhoneAuthenticationRequest
impl RefUnwindSafe for PhoneAuthenticationRequest
impl Send for PhoneAuthenticationRequest
impl Sync for PhoneAuthenticationRequest
impl Unpin for PhoneAuthenticationRequest
impl UnsafeUnpin for PhoneAuthenticationRequest
impl UnwindSafe for PhoneAuthenticationRequest
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