pub fn random_uuid(_args: &HashMap<String, Value>) -> Result<Value>Expand description
A Tera function to generate a random UUIDv4.
§Example usage
ⓘ
use tera::{Context, Tera};
use tera_rand::random_uuid;
let mut tera: Tera = Tera::default();
tera.register_function("random_uuid", random_uuid);
let context: Context = Context::new();
let rendered: String = tera.render_str("{{ random_uuid() }}", &context).unwrap();