#[non_exhaustive]pub struct BatchReport {
pub items: Vec<ValidationReport>,
pub summary: BatchSummary,
pub warnings: Vec<ValidationWarning>,
}Expand description
Batch validation report.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.items: Vec<ValidationReport>Item reports.
summary: BatchSummaryBatch summary.
warnings: Vec<ValidationWarning>Batch-level warnings.
Implementations§
Source§impl BatchReport
impl BatchReport
Sourcepub fn from_items(
items: Vec<ValidationReport>,
warnings: Vec<ValidationWarning>,
elapsed: Duration,
) -> Self
pub fn from_items( items: Vec<ValidationReport>, warnings: Vec<ValidationWarning>, elapsed: Duration, ) -> Self
Builds a batch report and computes summary counters from item reports.
Sourcepub fn from_items_with_internal_errors(
items: Vec<ValidationReport>,
warnings: Vec<ValidationWarning>,
elapsed: Duration,
internal_errors: u64,
) -> Self
pub fn from_items_with_internal_errors( items: Vec<ValidationReport>, warnings: Vec<ValidationWarning>, elapsed: Duration, internal_errors: u64, ) -> Self
Builds a batch report with internal per-input error count.
Trait Implementations§
Source§impl Clone for BatchReport
impl Clone for BatchReport
Source§fn clone(&self) -> BatchReport
fn clone(&self) -> BatchReport
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 BatchReport
impl Debug for BatchReport
Source§impl<'de> Deserialize<'de> for BatchReport
impl<'de> Deserialize<'de> for BatchReport
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 BatchReport
impl RefUnwindSafe for BatchReport
impl Send for BatchReport
impl Sync for BatchReport
impl Unpin for BatchReport
impl UnsafeUnpin for BatchReport
impl UnwindSafe for BatchReport
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