#[non_exhaustive]pub struct BatchSummary {
pub total_files: u64,
pub valid: u64,
pub invalid: u64,
pub parse_failures: u64,
pub encrypted: u64,
pub incomplete: u64,
pub internal_errors: u64,
pub elapsed_millis: u64,
pub worst_exit_category: ExitCategory,
}Expand description
Batch summary counters.
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.total_files: u64Total input count.
valid: u64Valid input count.
invalid: u64Invalid input count.
parse_failures: u64Parse failure count.
encrypted: u64Encrypted input count.
incomplete: u64Incomplete validation count.
internal_errors: u64Internal error count.
elapsed_millis: u64Elapsed milliseconds.
worst_exit_category: ExitCategoryWorst exit category.
Implementations§
Source§impl BatchSummary
impl BatchSummary
Sourcepub fn builder() -> BatchSummaryBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> BatchSummaryBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building BatchSummary.
On the builder, call .total_files(...), .valid(...), .invalid(...), .parse_failures(...), .encrypted(...), .incomplete(...), .internal_errors(...), .elapsed_millis(...), .worst_exit_category(...) to set the values of the fields.
Finally, call .build() to create the instance of BatchSummary.
Source§impl BatchSummary
impl BatchSummary
Sourcepub fn from_items(items: &[ValidationReport], elapsed: Duration) -> Self
pub fn from_items(items: &[ValidationReport], elapsed: Duration) -> Self
Computes batch summary counters from item reports.
Sourcepub fn from_items_with_internal_errors(
items: &[ValidationReport],
elapsed: Duration,
internal_errors: u64,
) -> Self
pub fn from_items_with_internal_errors( items: &[ValidationReport], elapsed: Duration, internal_errors: u64, ) -> Self
Computes batch summary counters from item reports plus internal error count.
Trait Implementations§
Source§impl Clone for BatchSummary
impl Clone for BatchSummary
Source§fn clone(&self) -> BatchSummary
fn clone(&self) -> BatchSummary
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 BatchSummary
impl Debug for BatchSummary
Source§impl Default for BatchSummary
impl Default for BatchSummary
Source§fn default() -> BatchSummary
fn default() -> BatchSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchSummary
impl<'de> Deserialize<'de> for BatchSummary
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 BatchSummary
impl PartialEq for BatchSummary
Source§fn eq(&self, other: &BatchSummary) -> bool
fn eq(&self, other: &BatchSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BatchSummary
impl Serialize for BatchSummary
impl Eq for BatchSummary
impl StructuralPartialEq for BatchSummary
Auto Trait Implementations§
impl Freeze for BatchSummary
impl RefUnwindSafe for BatchSummary
impl Send for BatchSummary
impl Sync for BatchSummary
impl Unpin for BatchSummary
impl UnsafeUnpin for BatchSummary
impl UnwindSafe for BatchSummary
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