pub struct RuleConfig {
pub severity: RuleSeverity,
pub ignore: Vec<String>,
pub command: Option<String>,
pub timeout: Option<u64>,
/* private fields */
}Expand description
Configuration for a single rule under [rules].
Supports shorthand (cycle = "warn") and table form ([rules.orphan]).
Fields§
§severity: RuleSeverity§ignore: Vec<String>§command: Option<String>§timeout: Option<u64>Implementations§
Source§impl RuleConfig
impl RuleConfig
pub fn is_path_ignored(&self, path: &str) -> bool
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