Struct git2::ConfigEntry
[−]
[src]
pub struct ConfigEntry<'cfg> { /* fields omitted */ }A struct representing a certain entry owned by a Config instance.
An entry has a name, a value, and a level it applies to.
Methods
impl<'cfg> ConfigEntry<'cfg>[src]
fn name(&self) -> Option<&str>[src]
Gets the name of this entry.
May return None if the name is not valid utf-8
fn name_bytes(&self) -> &[u8][src]
Gets the name of this entry as a byte slice.
fn value(&self) -> Option<&str>[src]
Gets the value of this entry.
May return None if the value is not valid utf-8
fn value_bytes(&self) -> &[u8][src]
Gets the value of this entry as a byte slice.
fn level(&self) -> ConfigLevel[src]
Gets the configuration level of this entry.