pub struct SnowflakeComponents {
pub timestamp_millis: i64,
pub machine_id: i64,
pub node_id: i64,
pub sequence: u32,
}Expand description
The decoded components of a Snowflake ID.
Obtained via crate::generator::SnowflakeIdGenerator::decompose.
Fields§
§timestamp_millis: i64Milliseconds since the generator’s epoch.
machine_id: i64Machine identifier embedded in the ID.
node_id: i64Node identifier embedded in the ID.
sequence: u32Per-millisecond sequence counter embedded in the ID.
Trait Implementations§
Source§impl Clone for SnowflakeComponents
impl Clone for SnowflakeComponents
Source§fn clone(&self) -> SnowflakeComponents
fn clone(&self) -> SnowflakeComponents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnowflakeComponents
impl Debug for SnowflakeComponents
Source§impl PartialEq for SnowflakeComponents
impl PartialEq for SnowflakeComponents
impl Copy for SnowflakeComponents
impl Eq for SnowflakeComponents
impl StructuralPartialEq for SnowflakeComponents
Auto Trait Implementations§
impl Freeze for SnowflakeComponents
impl RefUnwindSafe for SnowflakeComponents
impl Send for SnowflakeComponents
impl Sync for SnowflakeComponents
impl Unpin for SnowflakeComponents
impl UnsafeUnpin for SnowflakeComponents
impl UnwindSafe for SnowflakeComponents
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