pub fn to_string<T>(value: &T, ctx: &Context<'_>) -> Result<String>where
T: ?Sized + Evaluate,
<T as Evaluate>::Output: Serialize,
Expand description
Serialize the given value as an HCL string after evaluating all expressions using the given context.
See the module level documentation for a usage example.
Errors
This function fails with an error if any condition described in the error section of the
evaluate
method documentation meets.