pub struct Mutation {
pub apply_configuration: Option<ApplyConfiguration>,
pub json_patch: Option<JSONPatch>,
pub patch_type: String,
}
Expand description
Mutation specifies the CEL expression which is used to apply the Mutation.
Fields§
§apply_configuration: Option<ApplyConfiguration>
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
json_patch: Option<JSONPatch>
jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
patch_type: String
patchType indicates the patch strategy used. Allowed values are “ApplyConfiguration” and “JSONPatch”. Required.
Trait Implementations§
Source§impl DeepMerge for Mutation
impl DeepMerge for Mutation
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl<'de> Deserialize<'de> for Mutation
impl<'de> Deserialize<'de> for Mutation
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 StructuralPartialEq for Mutation
Auto Trait Implementations§
impl Freeze for Mutation
impl RefUnwindSafe for Mutation
impl Send for Mutation
impl Sync for Mutation
impl Unpin for Mutation
impl UnwindSafe for Mutation
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