#[non_exhaustive]pub struct SendLobbyMessage {
pub content: CompactString,
pub metadata: LobbyMetadata,
pub flags: Option<MessageFlags>,
}Expand description
The body of Send Lobby Message.
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.content: CompactStringThe text (not empty).
metadata: LobbyMetadataMetadata delivered with the message to Social SDK clients (not kept on the linked channel’s copy).
flags: Option<MessageFlags>Message flags; only those the Social SDK may set are accepted.
Implementations§
Trait Implementations§
Source§impl Clone for SendLobbyMessage
impl Clone for SendLobbyMessage
Source§impl Debug for SendLobbyMessage
impl Debug for SendLobbyMessage
impl Eq for SendLobbyMessage
Source§impl PartialEq for SendLobbyMessage
impl PartialEq for SendLobbyMessage
Source§impl Serialize for SendLobbyMessage
impl Serialize for SendLobbyMessage
impl StructuralPartialEq for SendLobbyMessage
Auto Trait Implementations§
impl Freeze for SendLobbyMessage
impl RefUnwindSafe for SendLobbyMessage
impl Send for SendLobbyMessage
impl Sync for SendLobbyMessage
impl Unpin for SendLobbyMessage
impl UnsafeUnpin for SendLobbyMessage
impl UnwindSafe for SendLobbyMessage
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