pub enum Chat {
Text(TextComponent),
Translation(TranslationComponent),
Keybind(KeybindComponent),
Score(ScoreComponent),
}
Variants§
Text(TextComponent)
Translation(TranslationComponent)
Keybind(KeybindComponent)
Score(ScoreComponent)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chat
impl<'de> Deserialize<'de> for Chat
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Deserialize for Chat
impl Deserialize for Chat
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<Chat> for LoginDisconnectSpec
impl From<Chat> for LoginDisconnectSpec
Source§impl From<Chat> for LoginDisconnectSpec
impl From<Chat> for LoginDisconnectSpec
Source§impl From<Chat> for PlayDisconnectSpec
impl From<Chat> for PlayDisconnectSpec
Source§impl From<Chat> for PlayDisconnectSpec
impl From<Chat> for PlayDisconnectSpec
Source§impl From<LoginDisconnectSpec> for Chat
impl From<LoginDisconnectSpec> for Chat
Source§fn from(other: LoginDisconnectSpec) -> Self
fn from(other: LoginDisconnectSpec) -> Self
Converts to this type from the input type.
Source§impl From<LoginDisconnectSpec> for Chat
impl From<LoginDisconnectSpec> for Chat
Source§fn from(other: LoginDisconnectSpec) -> Self
fn from(other: LoginDisconnectSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayDisconnectSpec> for Chat
impl From<PlayDisconnectSpec> for Chat
Source§fn from(other: PlayDisconnectSpec) -> Self
fn from(other: PlayDisconnectSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayDisconnectSpec> for Chat
impl From<PlayDisconnectSpec> for Chat
Source§fn from(other: PlayDisconnectSpec) -> Self
fn from(other: PlayDisconnectSpec) -> Self
Converts to this type from the input type.
Source§impl Serialize for Chat
impl Serialize for Chat
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Serialize for Chat
impl Serialize for Chat
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for Chat
Auto Trait Implementations§
impl Freeze for Chat
impl RefUnwindSafe for Chat
impl Send for Chat
impl Sync for Chat
impl Unpin for Chat
impl UnwindSafe for Chat
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