Trait git_checks::impl_prelude::ContentCheck
source · pub trait ContentCheck: Send + Sync {
fn name(&self) -> &str;
fn check(
&self,
ctx: &CheckGitContext,
content: &dyn Content
) -> Result<CheckResult>;
}
Expand description
Interface for checks which check the content of files.
These checks are not given any metadata, but only information about the content of a commit or topic.
Required Methods§
sourcefn check(
&self,
ctx: &CheckGitContext,
content: &dyn Content
) -> Result<CheckResult>
fn check(
&self,
ctx: &CheckGitContext,
content: &dyn Content
) -> Result<CheckResult>
Run the check.