pub struct MaxToolsLint { /* private fields */ }Expand description
Lint: checks the raw tools/list count against a configured maximum.
Implementations§
Source§impl MaxToolsLint
impl MaxToolsLint
pub fn new(definition: LintDefinition, max_tools: usize) -> Self
Trait Implementations§
Source§impl Clone for MaxToolsLint
impl Clone for MaxToolsLint
Source§fn clone(&self) -> MaxToolsLint
fn clone(&self) -> MaxToolsLint
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 MaxToolsLint
impl Debug for MaxToolsLint
Source§impl LintRule for MaxToolsLint
impl LintRule for MaxToolsLint
fn definition(&self) -> &LintDefinition
fn check_list(&self, context: &ListLintContext<'_>) -> Vec<LintFinding>
fn check_response(&self, _context: &ResponseLintContext<'_>) -> Vec<LintFinding>
fn check_run(&self, _context: &RunLintContext<'_>) -> Vec<LintFinding>
Auto Trait Implementations§
impl Freeze for MaxToolsLint
impl RefUnwindSafe for MaxToolsLint
impl Send for MaxToolsLint
impl Sync for MaxToolsLint
impl Unpin for MaxToolsLint
impl UnwindSafe for MaxToolsLint
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