Struct dasi::model::ChannelId [] [src]

pub struct ChannelId(pub u64);

An identifier for a Channel

Methods

impl ChannelId

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 ChannelId

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

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

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

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

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

impl Ord for ChannelId

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

impl Debug for ChannelId

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

impl PartialEq for ChannelId

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

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

impl Eq for ChannelId

impl Hash for ChannelId

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 ChannelId

fn clone(&self) -> ChannelId

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

impl Copy for ChannelId