pub struct MergeConflict {
pub object: Mrid,
pub attr: AttrId,
pub kept: Value,
pub discarded: Value,
}Expand description
Two files disagreeing about a single-valued attribute of one object.
A defect in the model set: merging keeps one reading and discards the other. The last
file read wins (so a change file over a base model behaves as intended); which one
that is depends on load order, but that a conflict happened does not.
Dataset::merge_conflicts lists them.
Fields§
§object: Mrid§attr: AttrId§kept: ValueThe value now stored — the one the later file supplied.
discarded: ValueThe value the earlier file supplied, which is no longer in the model.
Trait Implementations§
Source§impl Clone for MergeConflict
impl Clone for MergeConflict
Auto Trait Implementations§
impl Forget for MergeConflict
impl Freeze for MergeConflict
impl Move for MergeConflict
impl RefUnwindSafe for MergeConflict
impl Send for MergeConflict
impl Sync for MergeConflict
impl Unpin for MergeConflict
impl UnsafeUnpin for MergeConflict
impl UnwindSafe for MergeConflict
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