pub struct RuleConfig {
pub enabled_rules: Option<HashSet<String>>,
pub disabled_rules: HashSet<String>,
}Fields§
§enabled_rules: Option<HashSet<String>>§disabled_rules: HashSet<String>Implementations§
Source§impl RuleConfig
impl RuleConfig
pub fn is_enabled(&self, name: &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 moreSource§impl Debug for RuleConfig
impl Debug for RuleConfig
Source§impl Default for RuleConfig
impl Default for RuleConfig
Source§fn default() -> RuleConfig
fn default() -> RuleConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuleConfig
impl RefUnwindSafe for RuleConfig
impl Send for RuleConfig
impl Sync for RuleConfig
impl Unpin 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