Function generate_guid

Source
pub fn generate_guid() -> String
Expand description

Generates a random GUID using a custom alphabet.

The generated GUID is a 10-character string composed of a mix of uppercase letters, lowercase letters, digits, and a hyphen. The function uses the nanoid library to ensure randomness and uniqueness of the GUID.

ยงReturns

A String representing a randomly generated GUID.