pub enum Element {
Literal(String),
Interpolation(Interpolation),
Directive(Directive),
}
Expand description
An element of an HCL template.
Variants§
Literal(String)
A literal sequence of characters to include in the resulting string.
Interpolation(Interpolation)
An interpolation sequence that evaluates an expression (written in the expression sub-language), and converts the result to a string value.
Directive(Directive)
A if
and for
directive that allows for conditional template evaluation.
Trait Implementations§
Source§impl Format for Element
impl Format for Element
Source§fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
Formats a HCL structure using a formatter and writes the result to the provided writer. Read more
Source§impl From<Interpolation> for Element
impl From<Interpolation> for Element
Source§fn from(interpolation: Interpolation) -> Self
fn from(interpolation: Interpolation) -> Self
Converts to this type from the input type.
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.