pub struct InitCommand {
pub password: Option<String>,
pub password_hash: Option<PasswordHash>,
pub totp: Option<String>,
}
Expand description
The init command, used to authenticate a session.
Response: None
Fields§
§password: Option<String>
Plaintext password authenticator. Probably mutually exclusive with password_hash
.
password_hash: Option<PasswordHash>
Hashed password. Probably mutually exclusive with password
.
totp: Option<String>
Time-based One-Time Password. Typically combined with one of password
or password_hash
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitCommand
impl RefUnwindSafe for InitCommand
impl Send for InitCommand
impl Sync for InitCommand
impl Unpin for InitCommand
impl UnwindSafe for InitCommand
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