Struct serenity::model::id::MessageId [−][src]
pub struct MessageId(pub u64);
Expand description
An identifier for a Message
Tuple Fields
0: u64
Implementations
Returns a link referencing this message. When clicked, users will jump to the message. The link will be valid for messages in either private channels or guilds.
Same as Self::link
but tries to find the GuildId
if it is not provided.
Retrieves the time that the Id was created at.
Mutably borrow inner Id.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MessageId
impl UnwindSafe for MessageId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self