#[non_exhaustive]pub enum UserProfileUpdate {
Updated(UserProfileChanges),
Dropped,
}Available on crate feature
unstable-msc4262 only.Expand description
An update to a user’s profile.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Updated(UserProfileChanges)
The user’s profile has been updated with the included changes.
Dropped
This user no longer needs to be tracked as they have left all shared rooms.
Trait Implementations§
Source§impl Clone for UserProfileUpdate
impl Clone for UserProfileUpdate
Source§fn clone(&self) -> UserProfileUpdate
fn clone(&self) -> UserProfileUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserProfileUpdate
impl Debug for UserProfileUpdate
Source§impl<'d> Deserialize<'d> for UserProfileUpdate
impl<'d> Deserialize<'d> for UserProfileUpdate
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'d>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'d>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UserProfileUpdate
impl RefUnwindSafe for UserProfileUpdate
impl Send for UserProfileUpdate
impl Sync for UserProfileUpdate
impl Unpin for UserProfileUpdate
impl UnsafeUnpin 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