#[non_exhaustive]pub enum UserProfileUpdate {
Updated(UserProfileChanges),
Dropped,
}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<UserProfileUpdate, <D as Deserializer<'d>>::Error>where
D: Deserializer<'d>,
fn deserialize<D>(
deserializer: D,
) -> Result<UserProfileUpdate, <D as Deserializer<'d>>::Error>where
D: Deserializer<'d>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UserProfileUpdate
impl Serialize for UserProfileUpdate
Source§fn 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more