pub struct ChatEvent {
pub opcode: u16,
pub payload_hex: Option<String>,
pub channel_name: ChannelName,
pub message: Option<Message>,
pub channel: Option<u32>,
pub sender: Option<String>,
pub target: Option<String>,
pub string_id: Option<u32>,
pub arguments: Option<Vec<Message>>,
/* private fields */
}Expand description
One decoded communication packet suitable for serialization or presentation.
Fields§
§opcode: u16Raw game application opcode.
payload_hex: Option<String>Hex-encoded packet body when raw output was requested.
channel_name: ChannelNameNormalized communication channel.
message: Option<Message>Decoded message when the packet carries display text.
channel: Option<u32>Original numeric channel identifier when present.
sender: Option<String>Sending character or server name when present.
target: Option<String>Receiving character or audience when present.
string_id: Option<u32>String-table identifier for a formatted system message.
arguments: Option<Vec<Message>>Arguments supplied to a formatted string-table message.
Trait Implementations§
Source§impl Serialize for ChatEvent
impl Serialize for ChatEvent
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
Auto Trait Implementations§
impl Freeze for ChatEvent
impl RefUnwindSafe for ChatEvent
impl Send for ChatEvent
impl Sync for ChatEvent
impl Unpin for ChatEvent
impl UnsafeUnpin for ChatEvent
impl UnwindSafe for ChatEvent
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