pub struct SerializableLintRule {
name: String,
scoped_name: String,
scope: LintScope,
level: Level,
groups: Vec<LintGroup>,
documentation: String,
option_names: Vec<String>,
}Expand description
The data representation of a singular lint rule.
This is used to expose lints via the CLI so that the lints can be used in website generation or for development integration.
Fields§
§name: String§scoped_name: String§scope: LintScope§level: Level§groups: Vec<LintGroup>§documentation: String§option_names: Vec<String>Trait Implementations§
Source§impl Clone for SerializableLintRule
impl Clone for SerializableLintRule
Source§fn clone(&self) -> SerializableLintRule
fn clone(&self) -> SerializableLintRule
Returns a duplicate of the value. Read more
1.0.0 · 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 SerializableLintRule
impl Debug for SerializableLintRule
Auto Trait Implementations§
impl Freeze for SerializableLintRule
impl RefUnwindSafe for SerializableLintRule
impl Send for SerializableLintRule
impl Sync for SerializableLintRule
impl Unpin for SerializableLintRule
impl UnwindSafe for SerializableLintRule
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