pub struct MergeResult {
pub merged: VaultFile,
pub added_from_theirs: Vec<String>,
pub updated_from_theirs: Vec<String>,
pub added_from_ours: Vec<String>,
pub conflicts: Vec<String>,
pub deleted: Vec<String>,
pub is_noop: bool,
pub decisions: Vec<MergeDecision>,
}Expand description
Result of a three-way merge between base, ours (local), and theirs (remote) vault files.
Fields§
§merged: VaultFileThe merged vault file — ready to write to disk.
added_from_theirs: Vec<String>Keys added from theirs (remote additions we didn’t have).
updated_from_theirs: Vec<String>Keys updated from theirs (we were stale, theirs was newer).
added_from_ours: Vec<String>Keys added from ours (local additions not on remote).
conflicts: Vec<String>Keys where both sides changed — resolved by last-write-wins.
deleted: Vec<String>Keys deleted (removed from one or both sides).
is_noop: boolTrue if nothing changed (ours == theirs at the key level).
decisions: Vec<MergeDecision>Explicit per-key merge outcomes in deterministic key order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MergeResult
impl RefUnwindSafe for MergeResult
impl Send for MergeResult
impl Sync for MergeResult
impl Unpin for MergeResult
impl UnsafeUnpin for MergeResult
impl UnwindSafe for MergeResult
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