#[non_exhaustive]pub struct LobbyMember {
pub id: UserId,
pub metadata: BTreeMap<CompactString, CompactString>,
pub flags: LobbyMemberFlags,
pub additional_name: Option<CompactString>,
}Expand description
A lobby member.
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’s ID.
metadata: BTreeMap<CompactString, CompactString>String key/value pairs set by the app (max 1000 characters in total).
flags: LobbyMemberFlagsThe member’s flags.
additional_name: Option<CompactString>An extra display name (1-80 characters), e.g. an in-game character name.
Trait Implementations§
Source§impl Clone for LobbyMember
impl Clone for LobbyMember
Source§impl Debug for LobbyMember
impl Debug for LobbyMember
Source§impl<'de> Deserialize<'de> for LobbyMember
impl<'de> Deserialize<'de> for LobbyMember
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
impl Eq for LobbyMember
Source§impl PartialEq for LobbyMember
impl PartialEq for LobbyMember
Source§impl Serialize for LobbyMember
impl Serialize for LobbyMember
impl StructuralPartialEq for LobbyMember
Auto Trait Implementations§
impl Freeze for LobbyMember
impl RefUnwindSafe for LobbyMember
impl Send for LobbyMember
impl Sync for LobbyMember
impl Unpin for LobbyMember
impl UnsafeUnpin for LobbyMember
impl UnwindSafe for LobbyMember
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