pub struct ApplyDiffReport {
pub applied: Vec<AppliedFile>,
pub failed: Vec<FailedFile>,
}Expand description
The result of applying a multi-file patch.
Invalid patch envelopes return an ApplyDiffError. Failures involving an
individual file are collected here so unrelated files can still commit.
Fields§
§applied: Vec<AppliedFile>Filesystem changes that committed successfully.
failed: Vec<FailedFile>Logical files that remained unchanged because planning or commit failed.
Implementations§
Source§impl ApplyDiffReport
impl ApplyDiffReport
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true when no logical file failed.
A successful report can still have an empty applied
list when every requested update was a no-op.
Trait Implementations§
Source§impl Clone for ApplyDiffReport
impl Clone for ApplyDiffReport
Source§impl Debug for ApplyDiffReport
impl Debug for ApplyDiffReport
Source§impl Default for ApplyDiffReport
impl Default for ApplyDiffReport
impl Eq for ApplyDiffReport
Source§impl PartialEq for ApplyDiffReport
impl PartialEq for ApplyDiffReport
Source§impl Serialize for ApplyDiffReport
impl Serialize for ApplyDiffReport
impl StructuralPartialEq for ApplyDiffReport
Auto Trait Implementations§
impl Freeze for ApplyDiffReport
impl RefUnwindSafe for ApplyDiffReport
impl Send for ApplyDiffReport
impl Sync for ApplyDiffReport
impl Unpin for ApplyDiffReport
impl UnsafeUnpin for ApplyDiffReport
impl UnwindSafe for ApplyDiffReport
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