pub struct Attribute {
pub key: Decorated<Ident>,
pub value: Expression,
/* private fields */
}
Expand description
Represents an HCL attribute which consists of an attribute key and a value expression.
In HCL syntax this is represented as:
key = value
Use Attribute::new
to construct an Attribute
from a value that is convertible to this
crate’s Expression
type.
Fields§
§key: Decorated<Ident>
The HCL attribute’s key.
value: Expression
The value expression of the HCL attribute.
Implementations§
Trait Implementations§
impl Eq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more