Struct git_checks::checks::SubmoduleWatch [−][src]
pub struct SubmoduleWatch { /* fields omitted */ }Check that submodules are reachable from a given branch and available.
Methods
impl SubmoduleWatch[src]
impl SubmoduleWatchpub fn new() -> Self[src]
pub fn new() -> SelfChecks that submodules in the project are available.
ⓘImportant traits for &'a mut Rpub fn reject_additions(&mut self, reject: bool) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn reject_additions(&mut self, reject: bool) -> &mut SelfConfigure whether additions of submodules are allowed.
ⓘImportant traits for &'a mut Rpub fn reject_removals(&mut self, reject: bool) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn reject_removals(&mut self, reject: bool) -> &mut SelfConfigure whether removals of submodules are allowed.
Trait Implementations
impl Debug for SubmoduleWatch[src]
impl Debug for SubmoduleWatchfn 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 SubmoduleWatch[src]
impl Default for SubmoduleWatchfn default() -> SubmoduleWatch[src]
fn default() -> SubmoduleWatchReturns the "default value" for a type. Read more
impl Clone for SubmoduleWatch[src]
impl Clone for SubmoduleWatchfn clone(&self) -> SubmoduleWatch[src]
fn clone(&self) -> SubmoduleWatchReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for SubmoduleWatch[src]
impl Copy for SubmoduleWatchimpl Check for SubmoduleWatch[src]
impl Check for SubmoduleWatchfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>[src]
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for SubmoduleWatch
impl Send for SubmoduleWatchimpl Sync for SubmoduleWatch
impl Sync for SubmoduleWatch