[][src]Enum ruma_client_api::r0::session::login::UserInfo

pub enum UserInfo {
    MatrixId(String),
    ThirdPartyId {
        address: String,
        medium: Medium,
    },
    PhoneNumber {
        country: String,
        phone: String,
    },
}

Identification information for the user.

Variants

MatrixId(String)

Either a fully qualified Matrix user ID, or just the localpart (as part of the 'identifier' field).

ThirdPartyId

Third party identifier (as part of the 'identifier' field).

Fields of ThirdPartyId

address: String

Third party identifier for the user.

medium: Medium

The medium of the identifier.

PhoneNumber

Same as third-party identification with medium == msisdn, but with a non-canonicalised phone number.

Fields of PhoneNumber

country: String

The country that the phone number is from.

phone: String

The phone number.

Trait Implementations

impl Clone for UserInfo[src]

impl Debug for UserInfo[src]

impl<'de> Deserialize<'de> for UserInfo[src]

impl Eq for UserInfo[src]

impl PartialEq<UserInfo> for UserInfo[src]

impl Serialize for UserInfo[src]

impl StructuralEq for UserInfo[src]

impl StructuralPartialEq for UserInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,