Skip to main content

generated_id

Function generated_id 

Source
pub fn generated_id(prefix: &'static str) -> String
Expand description

Generates a project-standard opaque durable identifier.

Generated server-side IDs use an underscore prefix plus a 32-character lowercase UUID-simple body, such as cs_<32hex> or chk_<32hex>.

Ids in the id inventory generate through their newtype generate() constructors; this helper stays public for free-form generated labels (for example a server’s per-request id) that have no validated id type.