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

pub enum IncomingUserIdentifier {
    MatrixId(String),
    ThirdPartyId {
        address: String,
        medium: Medium,
    },
    PhoneNumber {
        country: String,
        phone: String,
    },
}
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).

ThirdPartyId

Third party identifier (as part of the ‘identifier’ field).

Show fields

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.

Show fields

Fields of PhoneNumber

country: String

The country that the phone number is from.

phone: String

The phone number.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.