Expand description

This crate defines a uniform resource name namespace for UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique Identifier). A UUID is 128 bits long, and can guarantee uniqueness across space and time.

[dependencies]
uuid = { version = "0.6.0", features = ["random"] }
use uuid_rs::v4;

fn main() {
    println!("{}", v4!());
}

Macros

Creates a lower String for UUID version-1.

Creates a lower String for UUID version-2.

Creates a lower String for UUID version-3.

Creates a lower String for UUID version-4.

Creates a lower String for UUID version-5.

Structs

Used to avoid duplicates that could arise when the clock is set backwards in time.

The UUID format is 16 octets.

The clock sequence is used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes.

Represented by Coordinated Universal Time (UTC) as a count of 100-ns intervals from the system-time.

Is a 128-bit number used to identify information in computer systems.

Enums

Domain is security-domain-relative name.

Variant is a type field determines the layout of the UUID.

Version represents the type of UUID, and is in the most significant 4 bits of the Timestamp.

Constants

Is 100-ns ticks between UNIX and UTC epochs.