pub struct LintResult {
pub issues: Vec<LintIssue>,
}Expand description
Result of linting a schema.
Fields§
§issues: Vec<LintIssue>Implementations§
Source§impl LintResult
impl LintResult
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Count of issues with Error severity.
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
Count of issues with Warning severity.
Sourcepub fn info_count(&self) -> usize
pub fn info_count(&self) -> usize
Count of issues with Info severity.
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Total number of issues.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if any error-level issues were found.
Sourcepub fn filter_by_severity(&self, min_severity: LintSeverity) -> Vec<&LintIssue>
pub fn filter_by_severity(&self, min_severity: LintSeverity) -> Vec<&LintIssue>
Filter issues by minimum severity.
Trait Implementations§
Source§impl Clone for LintResult
impl Clone for LintResult
Source§fn clone(&self) -> LintResult
fn clone(&self) -> LintResult
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 LintResult
impl Debug for LintResult
Source§impl Default for LintResult
impl Default for LintResult
Source§fn default() -> LintResult
fn default() -> LintResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LintResult
impl<'de> Deserialize<'de> for LintResult
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
Auto Trait Implementations§
impl Freeze for LintResult
impl RefUnwindSafe for LintResult
impl Send for LintResult
impl Sync for LintResult
impl Unpin for LintResult
impl UnsafeUnpin for LintResult
impl UnwindSafe for LintResult
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