Struct git_checks::checks::ValidName
[−]
[src]
pub struct ValidName { /* fields omitted */ }A check which checks for valid identities.
This check uses the host external binary to check the validity of domain names used in email
addresses.
The check can be configured with a policy on how to enforce use of full names.
Methods
impl ValidName[src]
fn new() -> Self[src]
Create a new check to check identities.
fn set_full_name_policy(&mut self, policy: ValidNameFullNamePolicy) -> &mut Self[src]
Set policy for enforcement of use of full names.
Trait Implementations
impl Debug for ValidName[src]
impl Default for ValidName[src]
impl Clone for ValidName[src]
fn clone(&self) -> ValidName[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for ValidName[src]
impl Check for ValidName[src]
fn name(&self) -> &str[src]
The name of the check.
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>[src]
Run the check.
impl BranchCheck for ValidName[src]
fn name(&self) -> &str[src]
The name of the check.
fn check(&self, ctx: &CheckGitContext, _: &CommitId) -> Result<CheckResult>[src]
Run the check.