Skip to main content

to_string

Function to_string 

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

Serializes a value to a UTF-8 YAML string.

ยงErrors

Returns an error when value cannot be represented as YAML.