pub struct Lint {
pub level: LintLevel,
pub priority: i8,
pub config: BTreeMap<String, Value>,
}
Expand description
Lint definition.
Fields§
§level: LintLevel
allow/warn/deny
priority: i8
Controls which lints or lint groups override other lint groups.
config: BTreeMap<String, Value>
Unstable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lint
impl<'de> Deserialize<'de> for Lint
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 StructuralPartialEq for Lint
Auto Trait Implementations§
impl Freeze for Lint
impl RefUnwindSafe for Lint
impl Send for Lint
impl Sync for Lint
impl Unpin for Lint
impl UnwindSafe for Lint
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