pub struct RuleDescriptor {
pub id: &'static str,
pub description: &'static str,
pub evidence: &'static [&'static str],
pub default_severity: DiagnosticSeverity,
pub category: DiagnosticCategory,
pub default_enabled: bool,
pub default_profile: AnalysisRuleProfile,
pub origin: RuleOrigin,
pub fixable: bool,
}Fields§
§id: &'static str§description: &'static str§evidence: &'static [&'static str]§default_severity: DiagnosticSeverity§category: DiagnosticCategory§default_enabled: bool§default_profile: AnalysisRuleProfile§origin: RuleOrigin§fixable: boolTrait Implementations§
Source§impl Clone for RuleDescriptor
impl Clone for RuleDescriptor
Source§fn clone(&self) -> RuleDescriptor
fn clone(&self) -> RuleDescriptor
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 moreimpl Copy for RuleDescriptor
Source§impl Debug for RuleDescriptor
impl Debug for RuleDescriptor
impl Eq for RuleDescriptor
Source§impl PartialEq for RuleDescriptor
impl PartialEq for RuleDescriptor
Source§fn eq(&self, other: &RuleDescriptor) -> bool
fn eq(&self, other: &RuleDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuleDescriptor
Auto Trait Implementations§
impl Freeze for RuleDescriptor
impl RefUnwindSafe for RuleDescriptor
impl Send for RuleDescriptor
impl Sync for RuleDescriptor
impl Unpin for RuleDescriptor
impl UnsafeUnpin for RuleDescriptor
impl UnwindSafe for RuleDescriptor
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,
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.