Enum discord_sdk::lobby::LobbyMessage
source · pub enum LobbyMessage {
Binary(Vec<u8>),
Text(String),
}
Expand description
A message sent by a user to a lobby
Variants§
Implementations§
Trait Implementations§
source§impl Clone for LobbyMessage
impl Clone for LobbyMessage
source§fn clone(&self) -> LobbyMessage
fn clone(&self) -> LobbyMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LobbyMessage
impl Debug for LobbyMessage
source§impl<'de> Deserialize<'de> for LobbyMessage
impl<'de> Deserialize<'de> for LobbyMessage
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
source§impl PartialEq for LobbyMessage
impl PartialEq for LobbyMessage
source§fn eq(&self, other: &LobbyMessage) -> bool
fn eq(&self, other: &LobbyMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LobbyMessage
impl Serialize for LobbyMessage
impl Eq for LobbyMessage
impl StructuralPartialEq for LobbyMessage
Auto Trait Implementations§
impl RefUnwindSafe for LobbyMessage
impl Send for LobbyMessage
impl Sync for LobbyMessage
impl Unpin for LobbyMessage
impl UnwindSafe for LobbyMessage
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