pub struct Login {
pub email: String,
pub password: String,
pub totp_code: Option<String>,
}Fields§
§email: String§password: String§totp_code: Option<String>Current code of the account’s authenticator app, or one of its recovery codes. Required once the account has two-factor authentication enabled; the login answers "Two-factor code required" when it is missing and the password is correct.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Login
impl<'de> Deserialize<'de> for Login
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
impl StructuralPartialEq for Login
Auto Trait Implementations§
impl Forget for Login
impl Freeze for Login
impl Move for Login
impl RefUnwindSafe for Login
impl Send for Loginwhere
RawVecInner: Send,
impl Sync for Loginwhere
RawVecInner: Sync,
impl Unpin for Login
impl UnsafeUnpin for Login
impl UnwindSafe for Loginwhere
RawVecInner: UnwindSafe,
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