pub struct ErrorSummary {
pub error_counts: HashMap<ErrorSeverity, u64>,
pub error_codes: HashMap<ErrorCode, u64>,
pub records_with_errors: u64,
pub total_records: u64,
pub first_error: Option<ErrorReport>,
pub last_error: Option<ErrorReport>,
pub corruption_warnings: u64,
}Expand description
Comprehensive error statistics and summary
Fields§
§error_counts: HashMap<ErrorSeverity, u64>Total number of errors by severity
error_codes: HashMap<ErrorCode, u64>Error counts by error code
records_with_errors: u64Records that had errors
total_records: u64Total records processed
first_error: Option<ErrorReport>First error encountered (for debugging)
last_error: Option<ErrorReport>Most recent error (for debugging)
corruption_warnings: u64Transfer corruption warnings detected
Implementations§
Source§impl ErrorSummary
impl ErrorSummary
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if processing had any errors
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Check if processing had any warnings
Sourcepub fn error_count(&self) -> u64
pub fn error_count(&self) -> u64
Get total error count (excluding warnings)
Sourcepub fn warning_count(&self) -> u64
pub fn warning_count(&self) -> u64
Get total warning count
Trait Implementations§
Source§impl Clone for ErrorSummary
impl Clone for ErrorSummary
Source§fn clone(&self) -> ErrorSummary
fn clone(&self) -> ErrorSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 ErrorSummary
impl Debug for ErrorSummary
Source§impl Default for ErrorSummary
impl Default for ErrorSummary
Source§fn default() -> ErrorSummary
fn default() -> ErrorSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorSummary
impl RefUnwindSafe for ErrorSummary
impl Send for ErrorSummary
impl Sync for ErrorSummary
impl Unpin for ErrorSummary
impl UnsafeUnpin for ErrorSummary
impl UnwindSafe for ErrorSummary
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