pub fn to_string<T>(value: &T) -> Result<String> where T: ?Sized + Serialize,
Serialize the given value as an HCL string.
Serialization fails if the type cannot be represented as HCL.