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

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_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Message[src]

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

Auto Trait Implementations

impl Sync for Message

impl Unpin for Message

impl Send for Message

impl UnwindSafe for Message

impl RefUnwindSafe for Message

Blanket Implementations

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> From<T> for T[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,