pub enum ChatObject {
Object(ChatComponentObject),
Array(Vec<ChatObject>),
JsonPrimitive(Value),
}
Expand description
Represents a chat object (the MOTD is sent as a chat object).
Variants§
Object(ChatComponentObject)
An individual chat object
Array(Vec<ChatObject>)
Vector of multiple chat objects
JsonPrimitive(Value)
Unknown data - raw JSON
Trait Implementations§
Source§impl Debug for ChatObject
impl Debug for ChatObject
Source§impl<'de> Deserialize<'de> for ChatObject
impl<'de> Deserialize<'de> for ChatObject
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
Auto Trait Implementations§
impl Freeze for ChatObject
impl RefUnwindSafe for ChatObject
impl Send for ChatObject
impl Sync for ChatObject
impl Unpin for ChatObject
impl UnwindSafe for ChatObject
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