pub struct Snowflake(pub u64);Expand description
Represents a Twitter snowflake used as IDs in various Discord objects.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snowflake
impl<'de> Deserialize<'de> for Snowflake
Source§fn deserialize<D>(deserializer: D) -> Result<Snowflake, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Snowflake, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Snowflake
impl RefUnwindSafe for Snowflake
impl Send for Snowflake
impl Sync for Snowflake
impl Unpin for Snowflake
impl UnwindSafe for Snowflake
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more