pub fn uuid_v4(args: &HashMap<String, Value>) -> Result<Value>
Expand description
Return a generated v4 uuid string.
§Arguments
format
- Possible format:hyphenated
|urn
|simple
(default).
§Examples
use std::collections::HashMap;
use serde_json::value::Value;
use chewdata::updater::tera_helpers::function::string::uuid_v4;
let args = HashMap::new();
let first_result = uuid_v4(&args);
let second_result = uuid_v4(&args);
assert!(first_result.is_ok());
assert!(second_result.is_ok());