Macro details
macro_rules! details {
{$($k: expr => $v: expr),* $(,)?} => { ... };
}Expand description
Creates a details HashMap from a list of key-value pairs.
This macro takes a list of key-value pairs and returns a HashMap with the
provided keys and values. The keys and values are converted to String
instances before being added to the HashMap.
§Example
let details = details! { “serial” => “01234567”, };