pub struct Snowflake(pub u64);Expand description
A Discord Snowflake ID.
Snowflakes are unique 64-bit unsigned integers used by Discord. They are serialized as strings in JSON to prevent precision loss in languages with limited integer precision (JavaScript).
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snowflake
impl<'de> Deserialize<'de> for Snowflake
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Snowflake
impl Eq for Snowflake
impl StructuralPartialEq for Snowflake
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