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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)