Struct git_checks::checks::InvalidPaths [−][src]
pub struct InvalidPaths { /* fields omitted */ }A check which denies commits which adds files containing special characters in their paths.
Methods
impl InvalidPaths[src]
impl InvalidPathspub fn new<S: ToString>(chars: S) -> Self[src]
pub fn new<S: ToString>(chars: S) -> SelfCreate a check which rejects paths which contain invalid characters.
In addition to whitespace and non-ASCII characters, the characters given here are also disallowed.
Trait Implementations
impl Debug for InvalidPaths[src]
impl Debug for InvalidPathsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for InvalidPaths[src]
impl Default for InvalidPathsfn default() -> InvalidPaths[src]
fn default() -> InvalidPathsReturns the "default value" for a type. Read more
impl ContentCheck for InvalidPaths[src]
impl ContentCheck for InvalidPathsfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, _: &CheckGitContext, content: &Content) -> Result<CheckResult>[src]
fn check(&self, _: &CheckGitContext, content: &Content) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for InvalidPaths
impl Send for InvalidPathsimpl Sync for InvalidPaths
impl Sync for InvalidPaths