Trait mit_commit_message_lints::external::Vcs[][src]

pub trait Vcs {
    fn entries(&self, glob: Option<&str>) -> Result<Vec<String>, Error>;
fn get_bool(&self, name: &str) -> Result<Option<bool>, Error>;
fn get_str(&self, name: &str) -> Result<Option<&str>, Error>;
fn get_i64(&self, name: &str) -> Result<Option<i64>, Error>;
fn set_str(&mut self, name: &str, value: &str) -> Result<(), Error>;
fn set_i64(&mut self, name: &str, value: i64) -> Result<(), Error>;
fn remove(&mut self, name: &str) -> Result<(), Error>; }

Required methods

fn entries(&self, glob: Option<&str>) -> Result<Vec<String>, Error>[src]

Errors

If we can’t read the config, or it’s not parsable into a bool

fn get_bool(&self, name: &str) -> Result<Option<bool>, Error>[src]

Errors

If we can’t read the config, or it’s not parsable into a bool

fn get_str(&self, name: &str) -> Result<Option<&str>, Error>[src]

Errors

If we can’t read the config, or it’s not parsable into a &str

fn get_i64(&self, name: &str) -> Result<Option<i64>, Error>[src]

Errors

If we can’t read the config, or it’s not parsable into a i64

fn set_str(&mut self, name: &str, value: &str) -> Result<(), Error>[src]

Errors

If the config fails to write

fn set_i64(&mut self, name: &str, value: i64) -> Result<(), Error>[src]

Errors

If the config fails to write

fn remove(&mut self, name: &str) -> Result<(), Error>[src]

Errors

If the config fails to write

Loading content...

Implementors

impl Vcs for Git2[src]

impl Vcs for InMemory<'_>[src]

Loading content...