pub enum InvitationRecipient<'a> {
UserId {
user_id: &'a UserId,
},
ThirdPartyId(Invite3pid<'a>),
}
Available on crate features
client
or server
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 · sourceconst fn clone_from(&mut self, source: &Self)
const 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>
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