[][src]Struct talk_loco_commands::request::chat::write::Write

pub struct Write {
    pub chat_id: i64,
    pub chat_type: i8,
    pub msg_id: i32,
    pub message: String,
    pub no_seen: bool,
    pub attachment: Option<String>,
    pub supplement: Option<String>,
}

Write message to chatroom

Fields

chat_id: i64

Chatroom id

chat_type: i8

Chat type

msg_id: i32

Message id

Client send count??

message: String

Message content

Usually String, but can be json String according to chat type.

no_seen: bool

If true, server will assume the client read last message.

attachment: Option<String>

Attachment content

Json data. Have contents and extra data according to chat type. Also known as extra.

supplement: Option<String>

Used on pluschat.

Cannot be used to send by normal user

Trait Implementations

impl BsonData for Write[src]

impl Clone for Write[src]

impl Debug for Write[src]

impl<'de> Deserialize<'de> for Write[src]

impl Serialize for Write[src]

Auto Trait Implementations

impl RefUnwindSafe for Write

impl Send for Write

impl Sync for Write

impl Unpin for Write

impl UnwindSafe for Write

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,