pub struct MaxStructuredContentBytesLint { /* private fields */ }Expand description
Lint: enforces a maximum structuredContent byte size per response.
Implementations§
Source§impl MaxStructuredContentBytesLint
impl MaxStructuredContentBytesLint
pub fn new(definition: LintDefinition, max_bytes: usize) -> Self
Trait Implementations§
Source§impl Clone for MaxStructuredContentBytesLint
impl Clone for MaxStructuredContentBytesLint
Source§fn clone(&self) -> MaxStructuredContentBytesLint
fn clone(&self) -> MaxStructuredContentBytesLint
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 LintRule for MaxStructuredContentBytesLint
impl LintRule for MaxStructuredContentBytesLint
fn definition(&self) -> &LintDefinition
fn check_response(&self, context: &ResponseLintContext<'_>) -> Vec<LintFinding>
fn check_list(&self, _context: &ListLintContext<'_>) -> Vec<LintFinding>
fn check_run(&self, _context: &RunLintContext<'_>) -> Vec<LintFinding>
Auto Trait Implementations§
impl Freeze for MaxStructuredContentBytesLint
impl RefUnwindSafe for MaxStructuredContentBytesLint
impl Send for MaxStructuredContentBytesLint
impl Sync for MaxStructuredContentBytesLint
impl Unpin for MaxStructuredContentBytesLint
impl UnwindSafe for MaxStructuredContentBytesLint
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