macro_rules! sstr {
($value:expr) => { ... };
}Expand description
Creates a Some(Value::String) for use in write requests.
This macro wraps a string value in Some(Value::String), 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 that can be converted to String
§Returns
Some(Value::String)- The wrapped string value