[][src]Enum ruma_client_api::r0::membership::invite_user::InvitationRecipient

pub enum InvitationRecipient {
    UserId {
        user_id: UserId,
    },
    ThirdPartyId(Invite3pid),
}

Distinguishes between invititations by Matrix or third party identifiers.

Variants

UserId

Used to invite user by their Matrix identifer.

Fields of UserId

user_id: UserId

Matrix identifier of user.

ThirdPartyId(Invite3pid)

Used to invite user by a third party identifer.

Trait Implementations

impl Clone for InvitationRecipient[src]

impl Debug for InvitationRecipient[src]

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

impl PartialEq<InvitationRecipient> for InvitationRecipient[src]

impl Serialize for InvitationRecipient[src]

impl StructuralPartialEq for InvitationRecipient[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>,