Struct dasi::model::MessageId [] [src]

pub struct MessageId(pub u64);

An identifier for a Message

Methods

impl MessageId

fn creation_date(&self) -> Timespec

Get the creation date of the object referred to by this ID.

Discord generates identifiers using a scheme based on Twitter Snowflake.

Trait Implementations

Derived Implementations

impl PartialOrd for MessageId

fn partial_cmp(&self, __arg_0: &MessageId) -> Option<Ordering>

fn lt(&self, __arg_0: &MessageId) -> bool

fn le(&self, __arg_0: &MessageId) -> bool

fn gt(&self, __arg_0: &MessageId) -> bool

fn ge(&self, __arg_0: &MessageId) -> bool

impl Ord for MessageId

fn cmp(&self, __arg_0: &MessageId) -> Ordering

impl Debug for MessageId

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

impl PartialEq for MessageId

fn eq(&self, __arg_0: &MessageId) -> bool

fn ne(&self, __arg_0: &MessageId) -> bool

impl Eq for MessageId

impl Hash for MessageId

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for MessageId

fn clone(&self) -> MessageId

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

impl Copy for MessageId