Struct ruma_client_api::membership::Invite3pid
source · [−]#[non_exhaustive]pub struct Invite3pid<'a> {
pub id_server: &'a str,
pub id_access_token: &'a str,
pub medium: Medium,
pub address: &'a str,
}
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 (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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 more
sourceimpl<'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> PartialEq<Invite3pid<'a>> for Invite3pid<'a>
impl<'a> PartialEq<Invite3pid<'a>> for Invite3pid<'a>
sourcefn eq(&self, other: &Invite3pid<'a>) -> bool
fn eq(&self, other: &Invite3pid<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Invite3pid<'a>) -> bool
fn ne(&self, other: &Invite3pid<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for Invite3pid<'a>
impl<'a> Serialize for Invite3pid<'a>
impl<'a> StructuralPartialEq 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more