pub enum ConflictChoice {
KeepLocal,
UseRepo,
Merge,
Skip,
ShowDiff,
}Expand description
The user’s response to a conflict resolution prompt.
Variants§
KeepLocal
Keep the local (actual) file — pull it into the repo.
UseRepo
Use the repo version — push to actual (local file will be backed up).
Merge
Attempt an automatic 3-way merge (only for plain-text files).
Skip
Skip this entry for now; leave both sides unchanged.
ShowDiff
Show a diff between repo and actual before deciding.
Trait Implementations§
Source§impl Clone for ConflictChoice
impl Clone for ConflictChoice
Source§fn clone(&self) -> ConflictChoice
fn clone(&self) -> ConflictChoice
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 moreimpl Copy for ConflictChoice
Source§impl Debug for ConflictChoice
impl Debug for ConflictChoice
impl Eq for ConflictChoice
Source§impl PartialEq for ConflictChoice
impl PartialEq for ConflictChoice
Source§fn eq(&self, other: &ConflictChoice) -> bool
fn eq(&self, other: &ConflictChoice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConflictChoice
Auto Trait Implementations§
impl Freeze for ConflictChoice
impl RefUnwindSafe for ConflictChoice
impl Send for ConflictChoice
impl Sync for ConflictChoice
impl Unpin for ConflictChoice
impl UnsafeUnpin for ConflictChoice
impl UnwindSafe for ConflictChoice
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