Struct git_checks::checks::ValidName
source · pub struct ValidName { /* private fields */ }Expand description
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.
Implementations§
source§impl ValidName
impl ValidName
sourcepub fn set_full_name_policy(
&mut self,
policy: ValidNameFullNamePolicy
) -> &mut Self
pub fn set_full_name_policy(
&mut self,
policy: ValidNameFullNamePolicy
) -> &mut Self
Set policy for enforcement of use of full names.
sourcepub fn whitelist_domains<I, D>(&mut self, domains: I) -> &mut Selfwhere
I: IntoIterator<Item = D>,
D: ToString,
pub fn whitelist_domains<I, D>(&mut self, domains: I) -> &mut Selfwhere
I: IntoIterator<Item = D>,
D: ToString,
Add domains to the domain whitelist.