[][src]Crate uuid_rs

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.4.0", features = ["randy"] }
use uuid_rs::uuid_v4;

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

Macros

uuid_v1

Creates a lower version-1 UUID String.

uuid_v2

Creates a lower version-2 UUID String.

uuid_v3

Creates a lower version-3 UUID String.

uuid_v4

Creates a lower version-4 UUID String.

uuid_v5

Creates a lower version-5 UUID String.

Structs

ClockSeq

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

Layout

The UUID format is 16 octets.

Node

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.

Timestamp

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

UUID

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

Enums

Domain

Domain is security-domain-relative name.

Variant

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

Version

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

Constants

UTC_EPOCH

Is 100-ns ticks between UNIX and UTC epochs.