pub struct BatchInsertionResult
pub worker_url: String,
pub batch_size: usize,
pub count_inserted: i64,
pub count_updated: i64,
pub success: bool,
pub error_message: Option<String>,
pub encode_time_ms: f64,
pub network_time_ms: f64,
pub total_time_ms: f64,
pub attempt: usize,
Result of a batch insertion attempt. This is passed to the batch listener callback after each batch completes.
Fields
worker_url: StringWorker URL the batch was sent to
batch_size: usizeNumber of records in the batch
count_inserted: i64Number of records successfully inserted
count_updated: i64Number of records successfully updated (upserts)
success: boolWhether the insertion succeeded
error_message: Option<String>Error message if failed
encode_time_ms: f64Time taken to build the request (milliseconds): encoding the records, and compressing them if Snappy applies
network_time_ms: f64Time taken for network transfer (milliseconds)
total_time_ms: f64Total time for the batch (milliseconds)
attempt: usizeRetry attempt number (0 = first attempt)
Trait Implementations
Source
impl Clone for BatchInsertionResult
Source
fn clone(&self) -> BatchInsertionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more