pub struct AnalysisRuleConfig { /* private fields */ }Implementations§
Source§impl AnalysisRuleConfig
impl AnalysisRuleConfig
pub fn with_profile(self, profile: AnalysisRuleProfile) -> Self
pub fn profile(&self) -> AnalysisRuleProfile
pub fn with_rule_enabled(self, rule_id: impl Into<String>) -> Self
pub fn with_rule_disabled(self, rule_id: impl Into<String>) -> Self
pub fn with_rule_severity( self, rule_id: impl Into<String>, severity: DiagnosticSeverity, ) -> Self
pub fn set_profile(&mut self, profile: AnalysisRuleProfile)
pub fn enable_rule(&mut self, rule_id: impl Into<String>)
pub fn disable_rule(&mut self, rule_id: impl Into<String>)
pub fn set_rule_severity( &mut self, rule_id: impl Into<String>, severity: DiagnosticSeverity, )
pub fn is_rule_enabled(&self, descriptor: RuleDescriptor) -> bool
pub fn severity_for(&self, descriptor: RuleDescriptor) -> DiagnosticSeverity
Trait Implementations§
Source§impl Clone for AnalysisRuleConfig
impl Clone for AnalysisRuleConfig
Source§fn clone(&self) -> AnalysisRuleConfig
fn clone(&self) -> AnalysisRuleConfig
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 AnalysisRuleConfig
impl Debug for AnalysisRuleConfig
Source§impl Default for AnalysisRuleConfig
impl Default for AnalysisRuleConfig
Source§fn default() -> AnalysisRuleConfig
fn default() -> AnalysisRuleConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnalysisRuleConfig
impl<'de> Deserialize<'de> for AnalysisRuleConfig
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
impl Eq for AnalysisRuleConfig
Source§impl PartialEq for AnalysisRuleConfig
impl PartialEq for AnalysisRuleConfig
Source§fn eq(&self, other: &AnalysisRuleConfig) -> bool
fn eq(&self, other: &AnalysisRuleConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnalysisRuleConfig
impl Serialize for AnalysisRuleConfig
impl StructuralPartialEq for AnalysisRuleConfig
Auto Trait Implementations§
impl Freeze for AnalysisRuleConfig
impl RefUnwindSafe for AnalysisRuleConfig
impl Send for AnalysisRuleConfig
impl Sync for AnalysisRuleConfig
impl Unpin for AnalysisRuleConfig
impl UnsafeUnpin for AnalysisRuleConfig
impl UnwindSafe for AnalysisRuleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.