pub enum MergeConflictKind {
Content {
add_add: bool,
},
ModifyDelete {
deleted_in: String,
modified_in: String,
},
RenameContent {
old_path: Vec<u8>,
},
RenameDelete {
old_path: Vec<u8>,
renamed_in: String,
deleted_in: String,
},
}Expand description
The kind of conflict recorded for a path, used to render the stable conflict-type token and human message.
Variants§
Content
Both sides changed the file content differently (or both added it with differing content — an add/add).
ModifyDelete
The file was deleted on one side and modified on the other.
Fields
RenameContent
A file renamed on one side, with a content conflict against the other side’s change at the destination.
RenameDelete
A file renamed on one side whose source was deleted on the other side.
Trait Implementations§
Source§impl Clone for MergeConflictKind
impl Clone for MergeConflictKind
Source§fn clone(&self) -> MergeConflictKind
fn clone(&self) -> MergeConflictKind
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 MergeConflictKind
impl Debug for MergeConflictKind
impl Eq for MergeConflictKind
Source§impl PartialEq for MergeConflictKind
impl PartialEq for MergeConflictKind
Source§fn eq(&self, other: &MergeConflictKind) -> bool
fn eq(&self, other: &MergeConflictKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeConflictKind
Auto Trait Implementations§
impl Freeze for MergeConflictKind
impl RefUnwindSafe for MergeConflictKind
impl Send for MergeConflictKind
impl Sync for MergeConflictKind
impl Unpin for MergeConflictKind
impl UnsafeUnpin for MergeConflictKind
impl UnwindSafe for MergeConflictKind
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