Struct dasi::model::RoleId [] [src]

pub struct RoleId(pub u64);

An identifier for a Role

Methods

impl RoleId

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 RoleId

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

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

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

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

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

impl Ord for RoleId

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

impl Debug for RoleId

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

impl PartialEq for RoleId

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

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

impl Eq for RoleId

impl Hash for RoleId

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 RoleId

fn clone(&self) -> RoleId

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

impl Copy for RoleId