Struct matrix_sdk_ui::timeline::RoomMembershipChange
source · pub struct RoomMembershipChange { /* private fields */ }
Expand description
An event changing a room membership.
Implementations§
source§impl RoomMembershipChange
impl RoomMembershipChange
sourcepub fn content(&self) -> &FullStateEventContent<RoomMemberEventContent>
pub fn content(&self) -> &FullStateEventContent<RoomMemberEventContent>
The full content of the event.
sourcepub fn display_name(&self) -> Option<String>
pub fn display_name(&self) -> Option<String>
Retrieve the member’s display name from the current event, or, if missing, from the one it replaced.
sourcepub fn avatar_url(&self) -> Option<OwnedMxcUri>
pub fn avatar_url(&self) -> Option<OwnedMxcUri>
Retrieve the avatar URL from the current event, or, if missing, from the one it replaced.
sourcepub fn change(&self) -> Option<MembershipChange>
pub fn change(&self) -> Option<MembershipChange>
The membership change induced by this event.
If this returns None
, it doesn’t mean that there was no change, but
that the change could not be computed. This is currently always the case
with redacted events.
Trait Implementations§
source§impl Clone for RoomMembershipChange
impl Clone for RoomMembershipChange
source§fn clone(&self) -> RoomMembershipChange
fn clone(&self) -> RoomMembershipChange
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RoomMembershipChange
impl RefUnwindSafe for RoomMembershipChange
impl Send for RoomMembershipChange
impl Sync for RoomMembershipChange
impl Unpin for RoomMembershipChange
impl UnwindSafe for RoomMembershipChange
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more