pub fn from_str<T>(s: &str, ctx: &Context<'_>) -> Result<T>where
T: DeserializeOwned,Expand description
Deserialize an instance of type T from a string of HCL text and evaluate all expressions
using the given context.
See the module level documentation for a usage example.
Errors
This function fails with an error if:
- the string
scannot be parsed as HCL. - any condition described in the error section of the
evaluatemethod documentation meets. - the evaluated value cannot be deserialized as a
T.