pub enum RuleConfig {
RequiredSections {
dirs: Vec<String>,
sections: Vec<String>,
severity: Severity,
},
RequiredFrontmatter {
dirs: Vec<String>,
fields: Vec<String>,
severity: Severity,
},
MirrorParity {
left: String,
right: String,
severity: Severity,
},
CitationPattern {
name: String,
dirs: Vec<String>,
pattern: String,
match_in: String,
match_mode: MatchMode,
severity: Severity,
},
}Expand description
A parameterized rule scoped to specific directories.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RuleConfig
impl Clone for RuleConfig
Source§fn clone(&self) -> RuleConfig
fn clone(&self) -> RuleConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuleConfig
impl RefUnwindSafe for RuleConfig
impl Send for RuleConfig
impl Sync for RuleConfig
impl Unpin for RuleConfig
impl UnsafeUnpin for RuleConfig
impl UnwindSafe for RuleConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more