#[non_exhaustive]pub enum SetItemKind {
Property {
target: Expr,
value: Expr,
},
ReplaceProperties {
target: Name,
value: Expr,
},
MergeProperties {
target: Name,
value: Expr,
},
Labels {
target: Name,
labels: LabelExpression,
},
}Expand description
The form of an assignment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for SetItemKind
impl Clone for SetItemKind
Source§impl Debug for SetItemKind
impl Debug for SetItemKind
Source§impl<'de> Deserialize<'de> for SetItemKind
impl<'de> Deserialize<'de> for SetItemKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SetItemKind
Source§impl Hash for SetItemKind
impl Hash for SetItemKind
Source§impl PartialEq for SetItemKind
impl PartialEq for SetItemKind
Source§impl Serialize for SetItemKind
impl Serialize for SetItemKind
impl StructuralPartialEq for SetItemKind
Auto Trait Implementations§
impl Freeze for SetItemKind
impl RefUnwindSafe for SetItemKind
impl Send for SetItemKind
impl Sync for SetItemKind
impl Unpin for SetItemKind
impl UnsafeUnpin for SetItemKind
impl UnwindSafe for SetItemKind
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