Struct screeps_api::websocket::types::messages::Message [] [src]

pub struct Message {
    pub message_id: String,
    pub out_message_id: String,
    pub text: String,
    pub direction: MessageDirectionType,
    pub unread: bool,
    pub user_id: String,
    pub respondent_id: String,
    // some fields omitted
}

Content of a newly sent or received message update.

Fields

The unique identifier for this message.

Unknown purpose.

The message text - should be displayed as formatted markdown.

The direction the message is going: who sent it.

For ChannelUpdate::UserMessage messages, this will always be Incoming. For ChannelUpdate::UserConversation updates, this can be both Incoming for new messages, or Outgoing for messages sent by either this client or another client logged in as the same user.

Whether or not the user who received this message has read it... Probably going to be false, as this is a message that was just sent.

The user who is subscribed to the channel and either received or sent this message.

The other user involved in this conversation: the one who isn't the user who received this update.

Trait Implementations

impl Clone for Message
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Message
[src]

[src]

Formats the value using the given formatter.