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

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: boolinserted_count: i32inserted_ids: BTreeMap<i64, Bson>matched_count: i32modified_count: i32deleted_count: i32upserted_count: i32upserted_ids: BTreeMap<i64, Bson>bulk_write_exception: Option<BulkWriteException>

Methods

impl BulkWriteResult[src]

pub fn new() -> BulkWriteResult[src]

Extracts server reply information into a result.

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

Adds the data in a BulkDeleteResult to this result.

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

Adds the data in an InsertManyResult to this result.

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

Adds the data in a BulkUpdateResult to this result.

Trait Implementations

impl Default for BulkWriteResult[src]

impl Clone for BulkWriteResult[src]

impl PartialEq<BulkWriteResult> for BulkWriteResult[src]

impl Debug for BulkWriteResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self