#[non_exhaustive]pub struct SpaceAddMemberInput<'a> {
pub id: &'a Id,
pub role_ids: Option<&'a [Id]>,
}Expand description
One member to add in the addMembers 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 add.
role_ids: Option<&'a [Id]>Initial role IDs for the new member. None grants no extra roles beyond @everyone.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpaceAddMemberInput<'a>
impl<'a> RefUnwindSafe for SpaceAddMemberInput<'a>
impl<'a> Send for SpaceAddMemberInput<'a>
impl<'a> Sync for SpaceAddMemberInput<'a>
impl<'a> Unpin for SpaceAddMemberInput<'a>
impl<'a> UnsafeUnpin for SpaceAddMemberInput<'a>
impl<'a> UnwindSafe for SpaceAddMemberInput<'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