pub struct Chat<'a> {
pub action: u8,
pub destination_type: u8,
pub destination_id: u32,
pub message: &'a str,
}
Expand description
Send chat as the server.
Fields§
§action: u8
Action such as NETWORK_ACTION_CHAT_CLIENT (see #NetworkAction).
destination_type: u8
Destination type such as DESTTYPE_BROADCAST (see #DestType).
destination_id: u32
ID of the destination such as company or client id.
message: &'a str
Message.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Chat<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Chat<'a>
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<'a> Copy for Chat<'a>
impl<'a> Eq for Chat<'a>
impl<'a> StructuralPartialEq for Chat<'a>
Auto Trait Implementations§
impl<'a> Freeze for Chat<'a>
impl<'a> RefUnwindSafe for Chat<'a>
impl<'a> Send for Chat<'a>
impl<'a> Sync for Chat<'a>
impl<'a> Unpin for Chat<'a>
impl<'a> UnwindSafe for Chat<'a>
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