Struct ruma_client_api::membership::Invite3pid
source · [−]pub struct Invite3pid<'a> {
pub id_server: &'a str,
pub id_access_token: &'a str,
pub medium: Medium,
pub address: &'a str,
}
Available on crate features
client
or server
only.Expand description
Represents third party IDs to invite to the room.
To create an instance of this type, first create a Invite3pidInit
and convert it via
Invite3pid::from
/ .into()
.
Fields
id_server: &'a str
Hostname and port of identity server to be used for account lookups.
id_access_token: &'a str
An access token registered with the identity server.
medium: Medium
Type of third party ID.
address: &'a str
Third party identifier.
Trait Implementations
sourceimpl<'a> Clone for Invite3pid<'a>
impl<'a> Clone for Invite3pid<'a>
sourcefn clone(&self) -> Invite3pid<'a>
fn clone(&self) -> Invite3pid<'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 Invite3pid<'a>
impl<'a> Debug for Invite3pid<'a>
sourceimpl<'a> From<Invite3pidInit<'a>> for Invite3pid<'a>
impl<'a> From<Invite3pidInit<'a>> for Invite3pid<'a>
sourcefn from(init: Invite3pidInit<'a>) -> Self
fn from(init: Invite3pidInit<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> Serialize for Invite3pid<'a>
impl<'a> Serialize for Invite3pid<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Invite3pid<'a>
impl<'a> Send for Invite3pid<'a>
impl<'a> Sync for Invite3pid<'a>
impl<'a> Unpin for Invite3pid<'a>
impl<'a> UnwindSafe for Invite3pid<'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