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
sourceimpl From<Interpolation> for Element
impl From<Interpolation> for Element
sourcefn from(interpolation: Interpolation) -> Self
fn from(interpolation: Interpolation) -> Self
Converts to this type from the input type.
impl Eq for Element
impl StructuralEq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.