pub enum IncomingUserIdentifier {
UserIdOrLocalpart(String),
Email {
address: String,
},
Msisdn {
number: String,
},
PhoneNumber {
country: String,
phone: String,
},
// some variants omitted
}
Available on (crate features
client-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
only.Expand description
‘Incoming’ variant of UserIdentifier.
Variants
UserIdOrLocalpart(String)
Either a fully qualified Matrix user ID, or just the localpart (as part of the ‘identifier’ field).
Email
Fields
address: String
The email address.
An email address.
Msisdn
A phone number in the MSISDN format.
PhoneNumber
Fields
country: String
The country that the phone number is from.
This is a two-letter uppercase ISO-3166-1 alpha-2 country code.
phone: String
The phone number.
A phone number as a separate country code and phone number.
The homeserver will be responsible for canonicalizing this to the MSISDN format.
Trait Implementations
sourceimpl Debug for IncomingUserIdentifier
impl Debug for IncomingUserIdentifier
sourceimpl<'de> Deserialize<'de> for IncomingUserIdentifier
impl<'de> Deserialize<'de> for IncomingUserIdentifier
sourcefn deserialize<D>(
deserializer: D
) -> Result<IncomingUserIdentifier, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more