pub struct Block {
pub ident: Decorated<Ident>,
pub labels: Vec<BlockLabel>,
pub body: BlockBody,
/* private fields */
}Expand description
Represents an HCL block which consists of a block identifier, zero or more block labels and a block body.
In HCL syntax this is represented as:
block_identifier "block_label1" "block_label2" {
body
}
Fields§
§ident: Decorated<Ident>The block identifier.
labels: Vec<BlockLabel>Zero or more block labels.
body: BlockBodyRepresents the Block’s body.
Implementations§
Trait Implementations§
source§impl PartialEq<Block> for Block
impl PartialEq<Block> for Block
impl Eq for Block
impl StructuralEq for Block
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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