Function hcl::to_string

source · []
pub fn to_string<T>(value: &T) -> Result<String> where
    T: ?Sized + Serialize
Expand description

Serialize the given value as an HCL string.

Errors

Serialization fails if the type cannot be represented as HCL.