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
message_id: String
The unique identifier for this message.
out_message_id: String
Unknown purpose.
text: String
The message text - should be displayed as formatted markdown.
direction: MessageDirectionType
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.
unread: bool
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.
user_id: String
The user who is subscribed to the channel and either received or sent this message.
respondent_id: String
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]
fn clone(&self) -> Message[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more