hcl

Function to_expression

Source
pub fn to_expression<T>(value: T) -> Result<Expression>
where T: Serialize,
Expand description

Convert a T into hcl::Expression which is an enum that can represent any valid HCL attribute value expression.

§Errors

This conversion can fail if T’s implementation of Serialize decides to fail, or if T contains a map with non-string keys.