#[non_exhaustive]pub struct Lobby {
pub id: LobbyId,
pub application_id: ApplicationId,
pub metadata: BTreeMap<CompactString, CompactString>,
pub members: Vec<LobbyMember>,
pub linked_channel: Option<Box<Channel>>,
}Expand description
A lobby.
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: LobbyIdThe lobby’s ID.
application_id: ApplicationIdThe application that created the lobby.
metadata: BTreeMap<CompactString, CompactString>String key/value pairs set by the app (max 1000 characters in total; null and absent
are empty, D-058).
members: Vec<LobbyMember>The lobby’s members.
linked_channel: Option<Box<Channel>>The guild channel linked to the lobby.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lobby
impl<'de> Deserialize<'de> for Lobby
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 Lobby
impl StructuralPartialEq for Lobby
Auto Trait Implementations§
impl Freeze for Lobby
impl RefUnwindSafe for Lobby
impl Send for Lobby
impl Sync for Lobby
impl Unpin for Lobby
impl UnsafeUnpin for Lobby
impl UnwindSafe for Lobby
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