Trait branchless::git::ConfigWrite
source · pub trait ConfigWrite {
// Required methods
fn set(
&mut self,
key: impl AsRef<str>,
value: impl Into<ConfigValue>
) -> Result<()>;
fn remove(&mut self, key: impl AsRef<str>) -> Result<()>;
fn set_multivar(
&mut self,
key: impl AsRef<str>,
regex: impl AsRef<str>,
value: impl AsRef<str>
) -> Result<()>;
fn remove_multivar(
&mut self,
key: impl AsRef<str>,
regex: impl AsRef<str>
) -> Result<()>;
}
Expand description
Write-only interface to Git’s configuration.
Required Methods§
sourcefn set(
&mut self,
key: impl AsRef<str>,
value: impl Into<ConfigValue>
) -> Result<()>
fn set( &mut self, key: impl AsRef<str>, value: impl Into<ConfigValue> ) -> Result<()>
Set the given config key to the given value.
sourcefn remove(&mut self, key: impl AsRef<str>) -> Result<()>
fn remove(&mut self, key: impl AsRef<str>) -> Result<()>
Remove the given key from the configuration.