Enum ruma_client_api::r0::uiaa::IncomingAuthData [−][src]
#[non_exhaustive]
pub enum IncomingAuthData {
DirectRequest {
kind: String,
session: Option<String>,
auth_parameters: BTreeMap<String, JsonValue>,
},
FallbackAcknowledgement {
session: String,
},
}Expand description
‘Incoming’ variant of AuthData.
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.
Expand description
Used for sending UIAA authentication requests to the homeserver directly from the client.
Show fields
Fields of DirectRequest
kind: StringExpand description
The login type that the client is attempting to complete.
session: Option<String>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: StringExpand description
The value of the session key given by the homeserver.
Trait Implementations
impl Debug for IncomingAuthData[src]
impl Debug for IncomingAuthData[src]impl<'de> Deserialize<'de> for IncomingAuthData[src]
impl<'de> Deserialize<'de> for IncomingAuthData[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for IncomingAuthData
impl Send for IncomingAuthData
impl Sync for IncomingAuthData
impl Unpin for IncomingAuthData
impl UnwindSafe for IncomingAuthData
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,