pub trait UuidGenerator: Send + Sync {
    // Required method
    fn generate_v4(&self) -> Uuid;
}
Expand description

A trait for generating UUIDs.

This is supported on feature=uuid only.

Example.

Required Methods§

source

fn generate_v4(&self) -> Uuid

Generates a new UUID V4.

Implementors§