hcl::format

Function to_string

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

Format the given value as an HCL string.

If you need to serialize custom data structures implementing serde::Serialize use hcl::to_string instead.

ยงErrors

Formatting a value as string cannot fail.