Struct git2::ConfigEntry
[−]
[src]
pub struct ConfigEntry<'cfg> { // some 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>
fn name(&self) -> Option<&str>
Gets the name of this entry.
May return None
if the name is not valid utf-8
fn name_bytes(&self) -> &[u8]
Gets the name of this entry as a byte slice.
fn value(&self) -> Option<&str>
Gets the value of this entry.
May return None
if the value is not valid utf-8
fn value_bytes(&self) -> &[u8]
Gets the value of this entry as a byte slice.
fn level(&self) -> ConfigLevel
Gets the configuration level of this entry.