martinohmann / hcl-rs

HCL parsing and encoding libraries for rust with serde support
Apache License 2.0
119 stars 14 forks source link

feat: add `from_value` function for deserializing HCL `Value`. #348

Closed zkonge closed 2 months ago

zkonge commented 2 months ago

Add the from_value function to the value module, allowing users to convert a Value into a type T that implements serde::de::Deserialize.

Providing a convenient way to deserialize HCL Value into Rust types.

close #345

zkonge commented 2 months ago

@martinohmann would you like the inline link in doc? I changed the doc then it looks inconsistant now 🤔.

image

update: whatever, remove type link now, and it can be added back in the future.

martinohmann commented 2 months ago

LGTM, we can merge this once you fixed the failing doctest.

martinohmann commented 2 months ago

Thanks!