[][src]Struct rust_openttd_admin::packet::admin::client_packets::Chat

pub struct Chat<'a> {
    pub action: u8,
    pub destination_type: u8,
    pub destination_id: u32,
    pub message: &'a str,
}

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

impl<'_> Packet for Chat<'_>[src]

impl<'a> Copy for Chat<'a>[src]

impl<'a> Clone for Chat<'a>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq<Chat<'a>> for Chat<'a>[src]

impl<'a> Eq for Chat<'a>[src]

impl<'a> Debug for Chat<'a>[src]

impl<'a> Serialize for Chat<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Chat<'a>[src]

Auto Trait Implementations

impl<'a> Send for Chat<'a>

impl<'a> Sync for Chat<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]