#[non_exhaustive]pub struct LobbyMemberData {
pub id: UserId,
pub metadata: Option<LobbyMetadata>,
pub flags: Option<LobbyMemberFlags>,
pub additional_name: Patch<CompactString>,
}Expand description
A member in the body of Create Lobby or Modify Lobby, or one to upsert with Bulk Update Lobby Members (D-134).
discord.js counterpart: none (lobbies are not in discord.js v14 or discord-api-types).
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: UserIdThe user.
metadata: Option<LobbyMetadata>The member’s metadata; Some of an empty map clears it.
flags: Option<LobbyMemberFlags>The member’s flags.
additional_name: Patch<CompactString>An extra display name (1-80 characters), e.g. an in-game character name;
Patch::Keep keeps a member’s current one, Patch::Clear removes it.
Implementations§
Trait Implementations§
Source§impl Clone for LobbyMemberData
impl Clone for LobbyMemberData
Source§impl Debug for LobbyMemberData
impl Debug for LobbyMemberData
impl Eq for LobbyMemberData
Source§impl PartialEq for LobbyMemberData
impl PartialEq for LobbyMemberData
Source§impl Serialize for LobbyMemberData
impl Serialize for LobbyMemberData
impl StructuralPartialEq for LobbyMemberData
Auto Trait Implementations§
impl Freeze for LobbyMemberData
impl RefUnwindSafe for LobbyMemberData
impl Send for LobbyMemberData
impl Sync for LobbyMemberData
impl Unpin for LobbyMemberData
impl UnsafeUnpin for LobbyMemberData
impl UnwindSafe for LobbyMemberData
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