pub struct ConflictRecord {
pub conflict_id: ConflictId,
pub sig_id: SigId,
pub kind: ConflictKind,
pub base: Option<StageId>,
pub ours: Option<StageId>,
pub theirs: Option<StageId>,
}Expand description
Snapshot of one conflict the agent needs to resolve.
Fields§
§conflict_id: ConflictId§sig_id: SigId§kind: ConflictKind§base: Option<StageId>Stage on the LCA. None for AddAdd (no shared base) and
for sigs that didn’t exist on the LCA.
ours: Option<StageId>Stage on the dst (ours) side of the merge. None if dst
removed it.
theirs: Option<StageId>Stage on the src (theirs) side of the merge. None if src
removed it.
Trait Implementations§
Source§impl Clone for ConflictRecord
impl Clone for ConflictRecord
Source§fn clone(&self) -> ConflictRecord
fn clone(&self) -> ConflictRecord
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 ConflictRecord
impl Debug for ConflictRecord
Source§impl<'de> Deserialize<'de> for ConflictRecord
impl<'de> Deserialize<'de> for ConflictRecord
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
Source§impl PartialEq for ConflictRecord
impl PartialEq for ConflictRecord
Source§fn eq(&self, other: &ConflictRecord) -> bool
fn eq(&self, other: &ConflictRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConflictRecord
impl Serialize for ConflictRecord
impl Eq for ConflictRecord
impl StructuralPartialEq for ConflictRecord
Auto Trait Implementations§
impl Freeze for ConflictRecord
impl RefUnwindSafe for ConflictRecord
impl Send for ConflictRecord
impl Sync for ConflictRecord
impl Unpin for ConflictRecord
impl UnsafeUnpin for ConflictRecord
impl UnwindSafe for ConflictRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.