Function cuid2::cuid

source ·
pub fn cuid() -> String
Expand description

Creates a new CUID.

Alias for created_id(), which is the interface defined in the reference implementation. The cuid() interface allows easier drop-in replacement for crates using the v1 cuid crate.