Skip to main content

to_string

Function to_string 

Source
pub fn to_string<T: Serialize + ?Sized>(data: &T) -> Result<String, Error>
Expand description

ยงErrors

Returns an error if the input cannot be serialized as JavaScript-compatible JSON.