Skip to main content

create_timestamped

Function create_timestamped 

Source
pub fn create_timestamped() -> String
Expand description

Create a timestamped slug with a human-readable suffix.

Format: {timestamp_millis}-{adjective}-{noun}

ยงExamples

use vtcode_commons::slug;

let slug = slug::create_timestamped();
// Returns something like "1768330644696-gentle-harbor"