pub struct Chat {
pub action: u8,
pub destination: u8,
pub client: u32,
pub message: String,
pub money: Option<u64>,
}
Expand description
Send chat from the game into the admin network.
Fields§
§action: u8
Action such as NETWORK_ACTION_CHAT_CLIENT (see #NetworkAction).
destination: u8
Destination type such as DESTTYPE_BROADCAST (see #DestType).
client: u32
ID of the client who sent this message.
message: String
Message.
money: Option<u64>
Money (only when it is a ‘give money’ action).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chat
impl<'de> Deserialize<'de> for Chat
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
impl Eq for Chat
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