Struct mongodb::coll::results::BulkWriteResult [] [src]

pub struct BulkWriteResult {
    pub acknowledged: bool,
    pub inserted_count: i32,
    pub inserted_ids: BTreeMap<i64, Bson>,
    pub matched_count: i32,
    pub modified_count: i32,
    pub deleted_count: i32,
    pub upserted_count: i32,
    pub upserted_ids: BTreeMap<i64, Bson>,
    pub bulk_write_exception: Option<BulkWriteException>,
}

Results for a bulk write operation.

Fields

acknowledged: bool inserted_count: i32 inserted_ids: BTreeMap<i64, Bson> matched_count: i32 modified_count: i32 deleted_count: i32 upserted_count: i32 upserted_ids: BTreeMap<i64, Bson> bulk_write_exception: Option<BulkWriteException>

Methods

impl BulkWriteResult
[src]

fn new() -> BulkWriteResult

Extracts server reply information into a result.

fn process_bulk_delete_result(&mut self, result: BulkDeleteResult, models: Vec<WriteModel>, exception: &mut BulkWriteException) -> bool

Adds the data in a BulkDeleteResult to this result.

fn process_insert_many_result(&mut self, result: InsertManyResult, models: Vec<WriteModel>, start_index: i64, exception: &mut BulkWriteException) -> bool

Adds the data in an InsertManyResult to this result.

fn process_bulk_update_result(&mut self, result: BulkUpdateResult, models: Vec<WriteModel>, start_index: i64, exception: &mut BulkWriteException) -> bool

Adds the data in a BulkUpdateResult to this result.

Trait Implementations

impl Clone for BulkWriteResult
[src]

fn clone(&self) -> BulkWriteResult

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more