pub enum PatchKind {
Set,
Replace,
Del,
Unknown,
}Expand description
How a PatchOp writes at its target path.
Variants§
Set
Deep merge (RFC 7396): objects merge key by key, scalars/arrays overwrite. For incremental updates such as partial field changes of a complete agent object.
Replace
Wholesale replacement (no deep merge): the new value replaces the old
one entirely. For enums / tagged unions that must be swapped as a
whole (e.g. work_status from {Running:{}} to {Completed:{}}).
Del
Delete the key at the path.
Unknown
Audit yuuka-R1-2: an op tag this build does not know. The whole patch list used to hard-fail on deserialization (mixed-version deployments lost every patch until the ~3s snapshot self-heal); unknown tags now decode into this variant and are skipped with the rest of the malformed ops.
Trait Implementations§
impl Copy for PatchKind
Source§impl<'de> Deserialize<'de> for PatchKind
impl<'de> Deserialize<'de> for PatchKind
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 PatchKind
impl StructuralPartialEq for PatchKind
Auto Trait Implementations§
impl Freeze for PatchKind
impl RefUnwindSafe for PatchKind
impl Send for PatchKind
impl Sync for PatchKind
impl Unpin for PatchKind
impl UnsafeUnpin for PatchKind
impl UnwindSafe for PatchKind
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