Struct git_checks_core::GitCheckConfiguration
source · pub struct GitCheckConfiguration<'a> { /* private fields */ }
Expand description
Configuration for checks to run against a repository.
Implementations§
source§impl<'a> GitCheckConfiguration<'a>
impl<'a> GitCheckConfiguration<'a>
sourcepub fn add_check(&mut self, check: &'a dyn Check) -> &mut Self
pub fn add_check(&mut self, check: &'a dyn Check) -> &mut Self
Add a check to be run on every commit.
sourcepub fn add_branch_check(&mut self, check: &'a dyn BranchCheck) -> &mut Self
pub fn add_branch_check(&mut self, check: &'a dyn BranchCheck) -> &mut Self
Add a check to be once for the entire branch.
sourcepub fn add_topic_check(&mut self, check: &'a dyn TopicCheck) -> &mut Self
pub fn add_topic_check(&mut self, check: &'a dyn TopicCheck) -> &mut Self
Add a check to be once for the entire topic.
sourcepub fn run_commit(
&self,
ctx: &GitContext,
commit: &CommitId,
owner: &Identity
) -> Result<CheckResult, RunError>
pub fn run_commit( &self, ctx: &GitContext, commit: &CommitId, owner: &Identity ) -> Result<CheckResult, RunError>
Run checks over a given commit.
Trait Implementations§
source§impl<'a> Clone for GitCheckConfiguration<'a>
impl<'a> Clone for GitCheckConfiguration<'a>
source§fn clone(&self) -> GitCheckConfiguration<'a>
fn clone(&self) -> GitCheckConfiguration<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for GitCheckConfiguration<'a>
impl<'a> Debug for GitCheckConfiguration<'a>
source§impl<'a> Default for GitCheckConfiguration<'a>
impl<'a> Default for GitCheckConfiguration<'a>
source§fn default() -> GitCheckConfiguration<'a>
fn default() -> GitCheckConfiguration<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for GitCheckConfiguration<'a>
impl<'a> !RefUnwindSafe for GitCheckConfiguration<'a>
impl<'a> Send for GitCheckConfiguration<'a>
impl<'a> Sync for GitCheckConfiguration<'a>
impl<'a> Unpin for GitCheckConfiguration<'a>
impl<'a> !UnwindSafe for GitCheckConfiguration<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more