pub enum ConfigAction {
Get {
key: String,
},
GetAll {
key: String,
},
Set {
key: String,
value: String,
},
Unset {
key: String,
},
UnsetAll {
key: String,
},
Add {
key: String,
value: String,
},
List,
}Expand description
Actions supported by git config.
Variants§
Get
Get a value.
GetAll
Get all values for a multi-valued key.
Set
Set a value.
Unset
Unset a value.
UnsetAll
Unset all values for a key.
Add
Add an additional value for a multi-valued key.
List
List all config keys.
Trait Implementations§
Source§impl Clone for ConfigAction
impl Clone for ConfigAction
Source§fn clone(&self) -> ConfigAction
fn clone(&self) -> ConfigAction
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 moreAuto Trait Implementations§
impl Freeze for ConfigAction
impl RefUnwindSafe for ConfigAction
impl Send for ConfigAction
impl Sync for ConfigAction
impl Unpin for ConfigAction
impl UnsafeUnpin for ConfigAction
impl UnwindSafe for ConfigAction
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