Struct discord::model::ReadState [] [src]

pub struct ReadState {
    pub id: ChannelId,
    pub last_message_id: Option<MessageId>,
    pub mention_count: u64,
}

Summary of messages since last login

Fields

id

Id of the relevant channel

last_message_id

Last seen message in this channel

mention_count

Mentions since that message in this channel

Methods

impl ReadState
[src]

fn decode(value: Value) -> Result<ReadState>

Trait Implementations

Derived Implementations

impl Clone for ReadState
[src]

fn clone(&self) -> ReadState

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for ReadState
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.