Enum ffizer::UpdateMode
source · pub enum UpdateMode {
Ask,
Keep,
Override,
UpdateAsRemote,
CurrentAsLocal,
ShowDiff,
Merge,
}
Expand description
mode to process update of existing local file
Variants§
Ask
ask what to do
Keep
keep existing local file (ignore template)
Override
override local file with file from template
UpdateAsRemote
keep existing local file, add template with extension .REMOTE
CurrentAsLocal
rename existing local file with extension .LOCAL, add template file
ShowDiff
show diff then ask
Merge
try to merge existing local with remote template via merge tool (defined in the git’s configuration)
Trait Implementations§
source§impl Clone for UpdateMode
impl Clone for UpdateMode
source§fn clone(&self) -> UpdateMode
fn clone(&self) -> UpdateMode
Returns a copy of the value. Read more
1.0.0 · 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 UpdateMode
impl Debug for UpdateMode
source§impl Default for UpdateMode
impl Default for UpdateMode
source§fn default() -> UpdateMode
fn default() -> UpdateMode
Returns the “default value” for a type. Read more
source§impl Display for UpdateMode
impl Display for UpdateMode
source§impl PartialEq for UpdateMode
impl PartialEq for UpdateMode
source§fn eq(&self, other: &UpdateMode) -> bool
fn eq(&self, other: &UpdateMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ValueEnum for UpdateMode
impl ValueEnum for UpdateMode
impl Eq for UpdateMode
impl StructuralEq for UpdateMode
impl StructuralPartialEq for UpdateMode
Auto Trait Implementations§
impl RefUnwindSafe for UpdateMode
impl Send for UpdateMode
impl Sync for UpdateMode
impl Unpin for UpdateMode
impl UnwindSafe for UpdateMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.