#[non_exhaustive]pub struct ChatMessage {
pub json: ByteString,
pub position: ChatPosition,
pub sender: Option<Uuid>,
}Expand description
A chat message from the server. The text stays raw JSON until asked for.
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.json: ByteStringThe chat component as the server sent it (JSON).
position: ChatPositionWhere it is shown.
sender: Option<Uuid>Sender UUID (1.16+; None on 1.8 and for system messages with the nil UUID).
Implementations§
Trait Implementations§
Source§impl Clone for ChatMessage
impl Clone for ChatMessage
Source§impl Debug for ChatMessage
impl Debug for ChatMessage
impl Eq for ChatMessage
Source§impl PartialEq for ChatMessage
impl PartialEq for ChatMessage
impl StructuralPartialEq for ChatMessage
Auto Trait Implementations§
impl !Freeze for ChatMessage
impl Forget for ChatMessage
impl RefUnwindSafe for ChatMessage
impl Send for ChatMessage
impl Sync for ChatMessage
impl Unpin for ChatMessage
impl UnsafeUnpin for ChatMessage
impl UnwindSafe for ChatMessage
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