1use uuid::Uuid; 2use chrono::{DateTime, Utc}; 3 4/// Generates a new unique UUID v4 string 5pub fn generate_uuid() -> String { 6 Uuid::new_v4().to_string() 7} 8 9/// Returns the current UTC timestamp 10pub fn get_current_timestamp() -> DateTime<Utc> { 11 Utc::now() 12}