pub struct ChangesetResult {
pub commit: Oid,
pub paths: Vec<String>,
pub no_op: bool,
}Expand description
Outcome of a committed changeset.
Fields§
§commit: OidThe commit the branch points at. For a no-op changeset
(no_op == true) this is the unchanged HEAD — nothing was committed.
paths: Vec<String>The paths materialized into the working tree. Empty when no_op.
no_op: boolturbovault-4nc: true when the changeset’s changes produced a tree
identical to the parent’s (an idempotent / no-effect write). The
substrate skipped the commit, ref CAS, materialize, and reindex hook —
the working tree already matched HEAD. Preconditions are still checked
first, so a stale read aborts even when the result would be identical.
Trait Implementations§
Source§impl Clone for ChangesetResult
impl Clone for ChangesetResult
Source§fn clone(&self) -> ChangesetResult
fn clone(&self) -> ChangesetResult
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 moreAuto Trait Implementations§
impl Freeze for ChangesetResult
impl RefUnwindSafe for ChangesetResult
impl Send for ChangesetResult
impl Sync for ChangesetResult
impl Unpin for ChangesetResult
impl UnsafeUnpin for ChangesetResult
impl UnwindSafe for ChangesetResult
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