pub fn to_string<T>(value: &T) -> Result<String>
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.