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
Expand description
An identifier and password are supplied to authenticate.
Show fields
Fields of Password
identifier: UserIdentifier<'a>Expand description
Identification information for the user.
password: &'a strExpand description
The password.
Expand description
Token-based login.
Show fields
Fields of Token
token: &'a strExpand description
The token.
Trait Implementations
impl<'a> Outgoing for LoginInfo<'a>[src]
impl<'a> Outgoing for LoginInfo<'a>[src]type Incoming = IncomingLoginInfo
type Incoming = IncomingLoginInfoThe ‘Incoming’ variant of Self.
impl<'a> Eq for LoginInfo<'a>[src]
impl<'a> StructuralEq for LoginInfo<'a>[src]
impl<'a> StructuralPartialEq for LoginInfo<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for LoginInfo<'a>
impl<'a> Send for LoginInfo<'a>
impl<'a> Sync for LoginInfo<'a>
impl<'a> Unpin for LoginInfo<'a>
impl<'a> UnwindSafe for LoginInfo<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more