#[non_exhaustive]pub enum SignIn {
Token(SecretValue),
Password {
user: String,
password: SecretValue,
},
}Expand description
How the test signs in to the server’s API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Token(SecretValue)
An API token, user@realm!name=secret.
Password
A user (root@pam) and password; the password also signs in to the node over SSH when no
key is given for it.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SignIn
impl Freeze for SignIn
impl Move for SignIn
impl RefUnwindSafe for SignIn
impl Send for SignIn
impl Sync for SignIn
impl Unpin for SignIn
impl UnsafeUnpin for SignIn
impl UnwindSafe for SignIn
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