pub struct DiagnosticConfig {
pub rules: HashMap<String, RuleConfig>,
}Fields§
§rules: HashMap<String, RuleConfig>Implementations§
Source§impl DiagnosticConfig
impl DiagnosticConfig
pub fn load(path: &Path) -> Result<Self, String>
pub fn is_rule_enabled(&self, code: DiagnosticCode) -> bool
pub fn severity_override( &self, code: DiagnosticCode, ) -> Option<DiagnosticSeverity>
Trait Implementations§
Source§impl Clone for DiagnosticConfig
impl Clone for DiagnosticConfig
Source§fn clone(&self) -> DiagnosticConfig
fn clone(&self) -> DiagnosticConfig
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 DiagnosticConfig
impl Debug for DiagnosticConfig
Source§impl Default for DiagnosticConfig
impl Default for DiagnosticConfig
Source§fn default() -> DiagnosticConfig
fn default() -> DiagnosticConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagnosticConfig
impl<'de> Deserialize<'de> for DiagnosticConfig
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 DiagnosticConfig
impl RefUnwindSafe for DiagnosticConfig
impl Send for DiagnosticConfig
impl Sync for DiagnosticConfig
impl Unpin for DiagnosticConfig
impl UnsafeUnpin for DiagnosticConfig
impl UnwindSafe for DiagnosticConfig
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