pub enum UserProfileUpdate {
Full {
new_profile: UserProfile,
room_id: OwnedRoomId,
room_member: RoomMember,
},
RoomMemberOnly {
room_id: OwnedRoomId,
room_member: RoomMember,
},
UserProfileOnly(UserProfile),
}Expand description
A user profile update, which can include changes to a user’s full profile and/or room membership info.
Variants§
Full
A fully-fetched user profile, with info about the user’s membership in a given room.
RoomMemberOnly
An update to the user’s room membership info only, without any profile changes.
UserProfileOnly(UserProfile)
An update to the user’s profile only, without changes to room membership info.
Auto Trait Implementations§
impl Freeze for UserProfileUpdate
impl !RefUnwindSafe for UserProfileUpdate
impl Send for UserProfileUpdate
impl Sync for UserProfileUpdate
impl Unpin for UserProfileUpdate
impl !UnwindSafe for UserProfileUpdate
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, 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