pub struct ReportDocument {
pub schema_version: u32,
pub findings: Vec<FindingDocument>,
pub summary: BTreeMap<Category, usize>,
}Expand description
Top-level JSON document shape.
Fields§
§schema_version: u32The schema version this document was produced under.
findings: Vec<FindingDocument>Every finding, in the order CheckReport::findings held them.
summary: BTreeMap<Category, usize>Per-category finding counts (FR-009’s category tokens as keys).
Kept as BTreeMap<Category, usize> in memory (Category’s Ord is declaration
order, used elsewhere for --fail-on/table/SARIF ordering), but serialized through
serialize_summary_lexicographically (#1626 critic S1) so the JSON key order stays
the pre-#1626 BTreeMap<String, usize>’s lexicographic order rather than drifting to
Category’s declaration order.
Trait Implementations§
Source§impl Debug for ReportDocument
impl Debug for ReportDocument
Source§impl<'de> Deserialize<'de> for ReportDocument
impl<'de> Deserialize<'de> for ReportDocument
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
Source§impl PartialEq for ReportDocument
impl PartialEq for ReportDocument
Source§impl Serialize for ReportDocument
impl Serialize for ReportDocument
impl StructuralPartialEq for ReportDocument
Auto Trait Implementations§
impl Freeze for ReportDocument
impl RefUnwindSafe for ReportDocument
impl Send for ReportDocument
impl Sync for ReportDocument
impl Unpin for ReportDocument
impl UnsafeUnpin for ReportDocument
impl UnwindSafe for ReportDocument
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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