pub struct SpecAuditReport {
pub findings: Vec<SpecFinding>,
pub datatype_coverage: BTreeMap<String, usize>,
pub operations_audited: usize,
}Expand description
Roll-up of all findings + the datatype coverage map.
Fields§
§findings: Vec<SpecFinding>§datatype_coverage: BTreeMap<String, usize>Per (type, format) count of how many schemas in the spec use it.
Format "" is used when no format is declared.
operations_audited: usizeImplementations§
Source§impl SpecAuditReport
impl SpecAuditReport
Sourcepub fn counts_by_severity(&self) -> (usize, usize, usize)
pub fn counts_by_severity(&self) -> (usize, usize, usize)
Count of findings by severity. Useful for one-line summaries.
Sourcepub fn render_summary(&self) -> String
pub fn render_summary(&self) -> String
Human-readable single-paragraph summary.
Trait Implementations§
Source§impl Clone for SpecAuditReport
impl Clone for SpecAuditReport
Source§fn clone(&self) -> SpecAuditReport
fn clone(&self) -> SpecAuditReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpecAuditReport
impl Debug for SpecAuditReport
Source§impl Default for SpecAuditReport
impl Default for SpecAuditReport
Source§fn default() -> SpecAuditReport
fn default() -> SpecAuditReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpecAuditReport
impl RefUnwindSafe for SpecAuditReport
impl Send for SpecAuditReport
impl Sync for SpecAuditReport
impl Unpin for SpecAuditReport
impl UnsafeUnpin for SpecAuditReport
impl UnwindSafe for SpecAuditReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more