Enum ruma::api::client::membership::invite_user::v3::InvitationRecipient
source · [−]pub enum InvitationRecipient<'a> {
UserId {
user_id: &'a UserId,
},
ThirdPartyId(Invite3pid<'a>),
}
Available on (crate features
client-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
only.Expand description
Distinguishes between invititations by Matrix or third party identifiers.
Variants
UserId
Fields
user_id: &'a UserId
Matrix identifier of user.
Used to invite user by their Matrix identifier.
ThirdPartyId(Invite3pid<'a>)
Used to invite user by a third party identifier.
Trait Implementations
sourceimpl<'a> Clone for InvitationRecipient<'a>
impl<'a> Clone for InvitationRecipient<'a>
sourcefn clone(&self) -> InvitationRecipient<'a>
fn clone(&self) -> InvitationRecipient<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for InvitationRecipient<'a>
impl<'a> Debug for InvitationRecipient<'a>
sourceimpl<'a> Serialize for InvitationRecipient<'a>
impl<'a> Serialize for InvitationRecipient<'a>
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for InvitationRecipient<'a>
impl<'a> Send for InvitationRecipient<'a>
impl<'a> Sync for InvitationRecipient<'a>
impl<'a> Unpin for InvitationRecipient<'a>
impl<'a> UnwindSafe for InvitationRecipient<'a>
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