Enum ruma_client_api::r0::uiaa::AuthData [−][src]
#[non_exhaustive]
pub enum AuthData<'a> {
DirectRequest {
kind: &'a str,
session: Option<&'a str>,
auth_parameters: BTreeMap<String, JsonValue>,
},
FallbackAcknowledgement {
session: &'a str,
},
}Expand description
Additional authentication information for the user-interactive authentication API.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Expand description
Used for sending UIAA authentication requests to the homeserver directly from the client.
Show fields
Fields of DirectRequest
kind: &'a strExpand description
The login type that the client is attempting to complete.
session: Option<&'a str>Expand description
The value of the session key given by the homeserver.
auth_parameters: BTreeMap<String, JsonValue>Expand description
Parameters submitted for a particular authentication stage.
Expand description
Used by the client to acknowledge that the user has completed a UIAA stage through the fallback method.
Show fields
Fields of FallbackAcknowledgement
session: &'a strExpand description
The value of the session key given by the homeserver.
Implementations
impl<'a> AuthData<'a>[src]
impl<'a> AuthData<'a>[src]pub fn direct_request(kind: &'a str) -> Self[src]
pub fn direct_request(kind: &'a str) -> Self[src]Creates a new AuthData::DirectRequest with the given login type.
pub fn fallback_acknowledgement(session: &'a str) -> Self[src]
pub fn fallback_acknowledgement(session: &'a str) -> Self[src]Creates a new AuthData::FallbackAcknowledgement with the given session key.
Trait Implementations
impl<'a> Outgoing for AuthData<'a>[src]
impl<'a> Outgoing for AuthData<'a>[src]type Incoming = IncomingAuthData
type Incoming = IncomingAuthDataThe ‘Incoming’ variant of Self.
Auto Trait Implementations
impl<'a> RefUnwindSafe for AuthData<'a>
impl<'a> Send for AuthData<'a>
impl<'a> Sync for AuthData<'a>
impl<'a> Unpin for AuthData<'a>
impl<'a> UnwindSafe for AuthData<'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<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