Skip to main content

to_string

Function to_string 

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

Serialise the given data structure as a String of Nix data

ยงErrors

Serialization can fail if the implemenatation of Serialize for T fails.