Skip to main content

string

Function string 

Source
pub fn string(state: &State<'_, '_>, value: &Value) -> Result<Value, Error>
Expand description

Converts a value into a string if it’s not one already.

If the string has been marked as safe, that value is preserved.