#[non_exhaustive]pub struct PresenceRecipientListUpdates {
pub add: Vec<OwnedUserId>,
pub delete: Vec<OwnedUserId>,
}Available on crate feature
unstable-msc4495 and (crate features client or server) only.Expand description
A list of added or removed users in a user’s presence recipient list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.add: Vec<OwnedUserId>A list of users that have been added to the recipient list.
delete: Vec<OwnedUserId>A list of users that have been removed from the recipient list.
Implementations§
Source§impl PresenceRecipientListUpdates
impl PresenceRecipientListUpdates
Sourcepub fn new(add: Vec<OwnedUserId>, delete: Vec<OwnedUserId>) -> Self
pub fn new(add: Vec<OwnedUserId>, delete: Vec<OwnedUserId>) -> Self
Creates a new PresenceRecipientListUpdates with the given added and removed users.
Trait Implementations§
Source§impl Clone for PresenceRecipientListUpdates
impl Clone for PresenceRecipientListUpdates
Source§fn clone(&self) -> PresenceRecipientListUpdates
fn clone(&self) -> PresenceRecipientListUpdates
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 PresenceRecipientListUpdates
impl Debug for PresenceRecipientListUpdates
Source§impl Default for PresenceRecipientListUpdates
impl Default for PresenceRecipientListUpdates
Source§fn default() -> PresenceRecipientListUpdates
fn default() -> PresenceRecipientListUpdates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PresenceRecipientListUpdates
impl<'de> Deserialize<'de> for PresenceRecipientListUpdates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PresenceRecipientListUpdates
impl RefUnwindSafe for PresenceRecipientListUpdates
impl Send for PresenceRecipientListUpdates
impl Sync for PresenceRecipientListUpdates
impl Unpin for PresenceRecipientListUpdates
impl UnsafeUnpin for PresenceRecipientListUpdates
impl UnwindSafe for PresenceRecipientListUpdates
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