Enum ruma::api::client::r0::uiaa::IncomingUserIdentifier [−][src]
pub enum IncomingUserIdentifier {
MatrixId(String),
ThirdPartyId {
address: String,
medium: Medium,
},
PhoneNumber {
country: String,
phone: String,
},
}
api
and (crate features client-api
or client-api-c
or client-api-s
) only.Expand description
‘Incoming’ variant of UserIdentifier.
Variants
MatrixId(String)
Either a fully qualified Matrix user ID, or just the localpart (as part of the ‘identifier’ field).
Third party identifier (as part of the ‘identifier’ field).
Fields of ThirdPartyId
Same as third-party identification with medium == msisdn, but with a non-canonicalised phone number.
Fields of PhoneNumber
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<IncomingUserIdentifier, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<IncomingUserIdentifier, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for IncomingUserIdentifier
impl Send for IncomingUserIdentifier
impl Sync for IncomingUserIdentifier
impl Unpin for IncomingUserIdentifier
impl UnwindSafe for IncomingUserIdentifier
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more