Enum ruma_client_api::r0::session::login::LoginInfo [−][src]
pub enum LoginInfo<'a> {
Password {
identifier: UserIdentifier<'a>,
password: &'a str,
},
Token {
token: &'a str,
},
}Expand description
The authentication mechanism.
Variants
An identifier and password are supplied to authenticate.
Show fields
Fields of Password
identifier: UserIdentifier<'a>Identification information for the user.
password: &'a strThe password.
Token-based login.
Show fields
Fields of Token
token: &'a strThe token.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for LoginInfo<'a>impl<'a> UnwindSafe for LoginInfo<'a>Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more