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]
impl ValidNamepub fn new() -> Self[src]
pub fn new() -> SelfCreate a new check to check identities.
ⓘImportant traits for &'a mut Rpub fn set_full_name_policy(
&mut self,
policy: ValidNameFullNamePolicy
) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn set_full_name_policy(
&mut self,
policy: ValidNameFullNamePolicy
) -> &mut SelfSet policy for enforcement of use of full names.
ⓘImportant traits for &'a mut Rpub fn whitelist_domains<I, D>(&mut self, domains: I) -> &mut Self where
I: IntoIterator<Item = D>,
D: ToString, [src]
ⓘImportant traits for &'a mut R
pub fn whitelist_domains<I, D>(&mut self, domains: I) -> &mut Self where
I: IntoIterator<Item = D>,
D: ToString, Add domains to the domain whitelist.
Trait Implementations
impl Debug for ValidName[src]
impl Debug for ValidNamefn 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 ValidName[src]
impl Default for ValidNameimpl Clone for ValidName[src]
impl Clone for ValidNamefn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns 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 Check for ValidName[src]
impl Check for ValidNamefn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>[src]
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>Run the check.
impl BranchCheck for ValidName[src]
impl BranchCheck for ValidNamefn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, ctx: &CheckGitContext, _: &CommitId) -> Result<CheckResult>[src]
fn check(&self, ctx: &CheckGitContext, _: &CommitId) -> Result<CheckResult>Run the check.