Skip to main content

ConfigReader

Trait ConfigReader 

Source
pub trait ConfigReader {
    // Required methods
    fn config_get(&self, key: &str) -> AppResult<String>;
    fn config_get_all(&self, key: &str) -> AppResult<Vec<String>>;
    fn config_set(&self, key: &str, value: &str) -> AppResult<()>;
}
Expand description

Read and update git configuration.

Required Methods§

Source

fn config_get(&self, key: &str) -> AppResult<String>

Returns the highest-precedence value for a config key.

Source

fn config_get_all(&self, key: &str) -> AppResult<Vec<String>>

Returns all configured values for a multivar config key.

Source

fn config_set(&self, key: &str, value: &str) -> AppResult<()>

Sets a config key in the repository configuration.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§