pub enum ObjectKey {
Ident(Decorated<Ident>),
Expression(Expression),
}
Expand description
Represents an object key.
Variants§
Ident(Decorated<Ident>)
Represents an unquoted identifier used as object key.
Expression(Expression)
Any valid HCL expression can be an object key.
Implementations§
Trait Implementations§
Source§impl From<Expression> for ObjectKey
impl From<Expression> for ObjectKey
Source§fn from(expr: Expression) -> Self
fn from(expr: Expression) -> Self
Converts to this type from the input type.
impl Eq for ObjectKey
impl StructuralPartialEq for ObjectKey
Auto Trait Implementations§
impl Freeze for ObjectKey
impl RefUnwindSafe for ObjectKey
impl Send for ObjectKey
impl Sync for ObjectKey
impl Unpin for ObjectKey
impl UnwindSafe for ObjectKey
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