macro_rules! sref {
($value:expr) => { ... };
}Expand description
Creates a Some(Value::EntityReference) for use in write requests.
This macro wraps an entity reference string in Some(Value::EntityReference),
making it ready for use with swrite! macro or any function expecting an Option<Value>.
The input will be converted to a String using to_string().
§Arguments
$value- A string-like value representing an entity reference
§Returns
Some(Value::EntityReference)- The wrapped entity reference