Struct dasi::model::ServerId [] [src]

pub struct ServerId(pub u64);

An identifier for a Server

Methods

impl ServerId

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 ServerId

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

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

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

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

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

impl Ord for ServerId

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

impl Debug for ServerId

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

impl PartialEq for ServerId

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

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

impl Eq for ServerId

impl Hash for ServerId

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 ServerId

fn clone(&self) -> ServerId

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

impl Copy for ServerId