#[non_exhaustive]pub struct ModifyLobby {
pub metadata: Option<LobbyMetadata>,
pub members: Option<Vec<LobbyMemberData>>,
pub idle_timeout_seconds: Option<u32>,
}Expand description
The body of Modify Lobby.
Every field is optional.
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>Replaces the lobby’s metadata.
members: Option<Vec<LobbyMemberData>>Replaces the members (up to 25): members not in the list are removed.
idle_timeout_seconds: Option<u32>How many seconds an idle lobby lives before it is shut down (5 to 604 800).
Trait Implementations§
Source§impl Clone for ModifyLobby
impl Clone for ModifyLobby
Source§impl Debug for ModifyLobby
impl Debug for ModifyLobby
Source§impl Default for ModifyLobby
impl Default for ModifyLobby
impl Eq for ModifyLobby
Source§impl PartialEq for ModifyLobby
impl PartialEq for ModifyLobby
Source§impl Serialize for ModifyLobby
impl Serialize for ModifyLobby
impl StructuralPartialEq for ModifyLobby
Auto Trait Implementations§
impl Freeze for ModifyLobby
impl RefUnwindSafe for ModifyLobby
impl Send for ModifyLobby
impl Sync for ModifyLobby
impl Unpin for ModifyLobby
impl UnsafeUnpin for ModifyLobby
impl UnwindSafe for ModifyLobby
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