Struct ruma::api::client::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-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
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 · sourcefn clone_from(&mut self, source: &Self)
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>) -> Invite3pid<'a>
fn from(init: Invite3pidInit<'a>) -> Invite3pid<'a>
Converts to this type from the input type.
sourceimpl<'a> Serialize for Invite3pid<'a>
impl<'a> Serialize for Invite3pid<'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 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