#[derive(Debug, Clone, Default)]
pub struct UpdateStats {
pub inserts_applied: usize,
pub deletes_applied: usize,
pub updates_applied: usize,
pub errors: usize,
pub duration_us: u64,
}
impl UpdateStats {
pub fn merge(&mut self, other: &UpdateStats) {
self.inserts_applied += other.inserts_applied;
self.deletes_applied += other.deletes_applied;
self.updates_applied += other.updates_applied;
self.errors += other.errors;
self.duration_us += other.duration_us;
}
}