pub struct LoginRequestPayload<'login> {
pub email: &'login SecUtf8,
pub password: &'login SecUtf8,
pub two_factor_key: &'login SecUtf8,
pub auth_version: u32,
}Expand description
Used for requests to LOGIN_PATH endpoint.
Fields§
§email: &'login SecUtf8Registered user email.
password: &'login SecUtf8Filen-processed password. Note that this is not a registered user password, but its hash.
Use one of FilenPasswordWithMasterKey::from… methods to calculate it.
two_factor_key: &'login SecUtf8Registered user 2FA key, if present. XXXXXX means no 2FA key.
auth_version: u32Set this to a value you received from auth/info call and used to generate Filen password.
Trait Implementations§
Source§impl<'login> Clone for LoginRequestPayload<'login>
impl<'login> Clone for LoginRequestPayload<'login>
Source§fn clone(&self) -> LoginRequestPayload<'login>
fn clone(&self) -> LoginRequestPayload<'login>
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<'login> Debug for LoginRequestPayload<'login>
impl<'login> Debug for LoginRequestPayload<'login>
Source§impl<'login> Display for LoginRequestPayload<'login>
impl<'login> Display for LoginRequestPayload<'login>
Source§impl<'login> PartialEq for LoginRequestPayload<'login>
impl<'login> PartialEq for LoginRequestPayload<'login>
Source§fn eq(&self, other: &LoginRequestPayload<'login>) -> bool
fn eq(&self, other: &LoginRequestPayload<'login>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'login> Serialize for LoginRequestPayload<'login>
impl<'login> Serialize for LoginRequestPayload<'login>
impl<'login> Eq for LoginRequestPayload<'login>
impl<'login> StructuralPartialEq for LoginRequestPayload<'login>
Auto Trait Implementations§
impl<'login> Freeze for LoginRequestPayload<'login>
impl<'login> RefUnwindSafe for LoginRequestPayload<'login>
impl<'login> Send for LoginRequestPayload<'login>
impl<'login> Sync for LoginRequestPayload<'login>
impl<'login> Unpin for LoginRequestPayload<'login>
impl<'login> UnsafeUnpin for LoginRequestPayload<'login>
impl<'login> UnwindSafe for LoginRequestPayload<'login>
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