pub struct Patch {
pub id: String,
pub parent_version: String,
pub operations: Vec<PatchOp>,
pub rationale: String,
pub author: String,
}Expand description
A patch is an ordered list of operations with metadata.
Fields§
§id: StringUnique patch identifier.
parent_version: StringThe VersionId (hex) of the module state this patch applies to.
operations: Vec<PatchOp>Ordered list of operations to apply.
rationale: StringHuman/agent-readable rationale for the change.
Author identifier (agent ID or human).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Patch
impl<'de> Deserialize<'de> for Patch
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
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnsafeUnpin for Patch
impl UnwindSafe for Patch
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