pub enum ExistingArg {
Auto,
Keep,
Accept,
Reject,
Refuse,
}Expand description
--existing-revisions of edit and add.
Variants§
Auto
keep when the file has tracked changes, else the comparer path.
Keep
Keep them; the new edits are tracked beside them.
Accept
Accept them first.
Reject
Reject them first.
Refuse
Refuse a file that has them.
Implementations§
Source§impl ExistingArg
impl ExistingArg
Sourcepub fn from_choice(choice: &str) -> Option<Self>
pub fn from_choice(choice: &str) -> Option<Self>
--existing-revisions’s spelling (auto, keep, accept,
reject, refuse); None for anything else.
Sourcepub fn plan_value(self) -> Option<ExistingRevisions>
pub fn plan_value(self) -> Option<ExistingRevisions>
The plan’s existing_revisions; None for auto.
Trait Implementations§
Source§impl Clone for ExistingArg
impl Clone for ExistingArg
impl Copy for ExistingArg
Source§impl Debug for ExistingArg
impl Debug for ExistingArg
Source§impl Default for ExistingArg
impl Default for ExistingArg
impl Eq for ExistingArg
Source§impl PartialEq for ExistingArg
impl PartialEq for ExistingArg
Source§impl Serialize for ExistingArg
impl Serialize for ExistingArg
impl StructuralPartialEq for ExistingArg
Source§impl ValueEnum for ExistingArg
impl ValueEnum for ExistingArg
Auto Trait Implementations§
impl Forget for ExistingArg
impl Freeze for ExistingArg
impl Move for ExistingArg
impl RefUnwindSafe for ExistingArg
impl Send for ExistingArg
impl Sync for ExistingArg
impl Unpin for ExistingArg
impl UnsafeUnpin for ExistingArg
impl UnwindSafe for ExistingArg
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.