pub type CheckStat = Any<CheckStat>;Expand description
The core.checkStat key.
Aliased Type§
pub struct CheckStat {
pub name: &'static str,
pub section: &'static dyn Section,
pub subsection_requirement: Option<SubSectionRequirement>,
pub link: Option<Link>,
pub note: Option<Note>,
/* private fields */
}Fields§
§name: &'static strThe key of the value in the git configuration.
section: &'static dyn SectionThe parent section of the key.
subsection_requirement: Option<SubSectionRequirement>The subsection requirement to use.
link: Option<Link>A link to other resources that might be eligible as value.
note: Option<Note>A note about this key.
Implementations§
Source§impl CheckStat
impl CheckStat
Sourcepub fn try_into_checkstat(
&'static self,
value: Cow<'_, BStr>,
) -> Result<bool, GenericErrorWithValue>
pub fn try_into_checkstat( &'static self, value: Cow<'_, BStr>, ) -> Result<bool, GenericErrorWithValue>
Returns true if the full set of stat entries should be checked, and it’s just as lenient as git.