Skip to main content
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: String

Worker URL the batch was sent to

batch_size: usize

Number of records in the batch

count_inserted: i64

Number of records successfully inserted

count_updated: i64

Number of records successfully updated (upserts)

success: bool

Whether the insertion succeeded

error_message: Option<String>

Error message if failed

encode_time_ms: f64

Time taken to build the request (milliseconds): encoding the records, and compressing them if Snappy applies

network_time_ms: f64

Time taken for network transfer (milliseconds)

total_time_ms: f64

Total time for the batch (milliseconds)

attempt: usize

Retry attempt number (0 = first attempt)

Trait Implementations

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
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more