pub struct Report {
pub entries: Vec<ReportEntry>,
}Expand description
A batch of vector results, serializable as the JSON NIST ingests.
Fields§
§entries: Vec<ReportEntry>Implementations§
Source§impl Report
impl Report
pub fn new() -> Self
pub fn from_results(results: &[TestResult]) -> Self
pub fn push(&mut self, entry: ReportEntry)
Sourcepub fn to_json(&self) -> Result<String>
pub fn to_json(&self) -> Result<String>
Compact JSON — one line of header + entries. NIST’s ingestion pipeline handles either form; this is the default.
Sourcepub fn to_json_pretty(&self) -> Result<String>
pub fn to_json_pretty(&self) -> Result<String>
Pretty-printed JSON for human review.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
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
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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