Type Alias cassandra_cpp_sys::CassUuid

source ·
pub type CassUuid = CassUuid_;
Expand description

Version 1 (time-based) or version 4 (random) UUID.

@struct CassUuid

Aliased Type§

struct CassUuid {
    pub time_and_version: u64,
    pub clock_seq_and_node: u64,
}

Fields§

§time_and_version: u64

Represents the time and version part of a UUID. The most significant 4 bits represent the version and the bottom 60 bits representing the time part. For version 1 the time part represents the number of 100 nanosecond periods since 00:00:00 UTC, January 1, 1970 (the Epoch). For version 4 the time part is randomly generated.

§clock_seq_and_node: u64

Represents the clock sequence and the node part of a UUID. The most significant 16 bits represent the clock sequence (except for the most significant bit which is always set) and the bottom 48 bits represent the node part. For version 1 (time-based) the clock sequence part is randomly generated and the node part can be explicitly set, otherwise, it’s generated from node unique information. For version 4 both the clock sequence and the node parts are randomly generated.