#[non_exhaustive]pub struct SpaceUpdateMemberInput<'a> {
pub id: &'a Id,
pub role_ids: Option<&'a [Id]>,
pub nick: Patch<&'a str>,
}Expand description
One member update in the updateMembers patch key of Space/set update.
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.id: &'a IdChatContact.id of the member to update.
role_ids: Option<&'a [Id]>Replace the member’s SpaceRole.id list. None = no change.
nick: Patch<&'a str>Patch::Clear clears the nick; Patch::Set(s) sets it.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SpaceUpdateMemberInput<'a>
impl<'a> Clone for SpaceUpdateMemberInput<'a>
Source§fn clone(&self) -> SpaceUpdateMemberInput<'a>
fn clone(&self) -> SpaceUpdateMemberInput<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for SpaceUpdateMemberInput<'a>
impl<'a> RefUnwindSafe for SpaceUpdateMemberInput<'a>
impl<'a> Send for SpaceUpdateMemberInput<'a>
impl<'a> Sync for SpaceUpdateMemberInput<'a>
impl<'a> Unpin for SpaceUpdateMemberInput<'a>
impl<'a> UnsafeUnpin for SpaceUpdateMemberInput<'a>
impl<'a> UnwindSafe for SpaceUpdateMemberInput<'a>
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