[][src]Struct serenity::model::id::MessageId

pub struct MessageId(pub u64);

An identifier for a Message

Methods

impl MessageId[src]

pub fn created_at(&self) -> NaiveDateTime[src]

Retrieves the time that the Id was created at.

pub fn as_u64(&self) -> &u64[src]

Immutably borrow inner Id.

pub fn as_mut_u64(&mut self) -> &mut u64[src]

Mutably borrow inner Id.

Trait Implementations

impl AsRef<MessageId> for Message[src]

impl AsRef<MessageId> for MessageId[src]

impl Default for MessageId[src]

impl Clone for MessageId[src]

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

Performs copy-assignment from source. Read more

impl Ord for MessageId[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl From<Message> for MessageId[src]

fn from(message: Message) -> MessageId[src]

Gets the Id of a Message.

impl<'a> From<&'a Message> for MessageId[src]

fn from(message: &Message) -> MessageId[src]

Gets the Id of a Message.

impl<'a> From<&'a MessageId> for MessageId[src]

impl From<u64> for MessageId[src]

impl From<MessageId> for u64[src]

impl From<MessageId> for i64[src]

impl Eq for MessageId[src]

impl Copy for MessageId[src]

impl PartialOrd<MessageId> for MessageId[src]

impl PartialEq<MessageId> for MessageId[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialEq<u64> for MessageId[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Debug for MessageId[src]

impl Display for MessageId[src]

impl Hash for MessageId[src]

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

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for MessageId[src]

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

Auto Trait Implementations

impl Send for MessageId

impl Sync for MessageId

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<T> Borrow<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<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any