Skip to main content

generate_id

Function generate_id 

Source
pub fn generate_id() -> String
Expand description

Generate a new Crockford base32 26-character ULID string.

Offered, not required. Callers with no identifier scheme of their own should use this: ULIDs are sortable, collision-resistant, and contain neither reserved character by construction. Callers who have their own ids keep them, subject only to validate_id.