Macro hcl::attribute

source ·
macro_rules! attribute {
    ($($attr:tt)+) => { ... };
}
Expand description

Construct an hcl::Attribute from a key and a value expression.

For supported syntax see the body! macro documentation.

§Example

use hcl::Attribute;

assert_eq!(hcl::attribute!(foo = "bar"), Attribute::new("foo", "bar"));