pub struct HandoffChange {
pub path: String,
pub kind: HandoffChangeKind,
pub before_digest: Option<String>,
pub after_digest: Option<String>,
}Expand description
One content-addressed path change proposed by a child.
Fields§
§path: StringNormalized workspace-relative path.
kind: HandoffChangeKindChange classification.
before_digest: Option<String>Input digest for modifications/deletions.
after_digest: Option<String>Output digest for creations/modifications.
Implementations§
Source§impl HandoffChange
impl HandoffChange
Sourcepub fn validate(&self) -> Result<(), AgentError>
pub fn validate(&self) -> Result<(), AgentError>
Validates path and digest shape for the selected change kind.
Trait Implementations§
Source§impl Clone for HandoffChange
impl Clone for HandoffChange
Source§fn clone(&self) -> HandoffChange
fn clone(&self) -> HandoffChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandoffChange
impl Debug for HandoffChange
Source§impl<'de> Deserialize<'de> for HandoffChange
impl<'de> Deserialize<'de> for HandoffChange
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 HandoffChange
Source§impl PartialEq for HandoffChange
impl PartialEq for HandoffChange
Source§impl Serialize for HandoffChange
impl Serialize for HandoffChange
impl StructuralPartialEq for HandoffChange
Auto Trait Implementations§
impl Freeze for HandoffChange
impl RefUnwindSafe for HandoffChange
impl Send for HandoffChange
impl Sync for HandoffChange
impl Unpin for HandoffChange
impl UnsafeUnpin for HandoffChange
impl UnwindSafe for HandoffChange
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