pub struct OverrideConfig {
pub pattern: String,
pub context: Option<FileContextType>,
pub weight_multiplier: f64,
pub disabled_rules: Vec<String>,
}Fields§
§pattern: StringMatching pattern (glob or path prefix)
context: Option<FileContextType>Forced context type
weight_multiplier: f64Global multiplier for rule weight
disabled_rules: Vec<String>List of rules to disable
Trait Implementations§
Source§impl Clone for OverrideConfig
impl Clone for OverrideConfig
Source§fn clone(&self) -> OverrideConfig
fn clone(&self) -> OverrideConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OverrideConfig
impl Debug for OverrideConfig
Source§impl<'de> Deserialize<'de> for OverrideConfig
impl<'de> Deserialize<'de> for OverrideConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OverrideConfig
impl RefUnwindSafe for OverrideConfig
impl Send for OverrideConfig
impl Sync for OverrideConfig
impl Unpin for OverrideConfig
impl UnsafeUnpin for OverrideConfig
impl UnwindSafe for OverrideConfig
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