[][src]Module unique_id::string

An implementation that provides unique string values.

These string values are a fixed length and are generated as a representation of random UUID 128-bit values. This implementation depends upon the blob_uuid crate.

Example

use unique_id::{Generator, GeneratorWithInvalid};
use unique_id::string::StringGenerator;

let gen = StringGenerator::default();
let id = gen.next_id();
assert_ne!(id, StringGenerator::invalid_id())

Structs

StringGenerator

Generates random, unique string values from UUIDs. This implementation does provide an invalid value, the empty string.