#[non_exhaustive]pub struct AddLobbyMember {
pub metadata: Option<LobbyMetadata>,
pub flags: Option<LobbyMemberFlags>,
pub additional_name: Patch<CompactString>,
}Expand description
The body of Add a Member to a Lobby (D-134). The user is in the path; for a member already in the lobby, the fields that are set are updated.
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.metadata: Option<LobbyMetadata>The member’s metadata.
flags: Option<LobbyMemberFlags>The member’s flags.
additional_name: Patch<CompactString>An extra display name (1-80 characters); Patch::Clear removes it.
Trait Implementations§
Source§impl Clone for AddLobbyMember
impl Clone for AddLobbyMember
Source§impl Debug for AddLobbyMember
impl Debug for AddLobbyMember
Source§impl Default for AddLobbyMember
impl Default for AddLobbyMember
impl Eq for AddLobbyMember
Source§impl PartialEq for AddLobbyMember
impl PartialEq for AddLobbyMember
Source§impl Serialize for AddLobbyMember
impl Serialize for AddLobbyMember
impl StructuralPartialEq for AddLobbyMember
Auto Trait Implementations§
impl Freeze for AddLobbyMember
impl RefUnwindSafe for AddLobbyMember
impl Send for AddLobbyMember
impl Sync for AddLobbyMember
impl Unpin for AddLobbyMember
impl UnsafeUnpin for AddLobbyMember
impl UnwindSafe for AddLobbyMember
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