[][src]Struct mongodb_cwal::coll::error::BulkWriteException

pub struct BulkWriteException {
    pub processed_requests: Vec<WriteModel>,
    pub unprocessed_requests: Vec<WriteModel>,
    pub write_errors: Vec<BulkWriteError>,
    pub write_concern_error: Option<WriteConcernError>,
    pub message: String,
}

The error struct for Bulk-Write related MongoDB operations.

Fields

processed_requests: Vec<WriteModel>unprocessed_requests: Vec<WriteModel>write_errors: Vec<BulkWriteError>write_concern_error: Option<WriteConcernError>message: String

Implementations

impl BulkWriteException[src]

pub fn new(
    processed: Vec<WriteModel>,
    unprocessed: Vec<WriteModel>,
    write_errors: Vec<BulkWriteError>,
    write_concern_error: Option<WriteConcernError>
) -> BulkWriteException
[src]

Returns a new BulkWriteException containing the provided error information.

pub fn add_unproccessed_model(&mut self, model: WriteModel)[src]

Adds a model to the vector of unprocessed models

pub fn add_unproccessed_models(&mut self, models: Vec<WriteModel>)[src]

Adds a vector of models to the vector of unprocessed models.

pub fn add_bulk_write_exception(
    &mut self,
    exception_opt: Option<BulkWriteException>,
    models: Vec<WriteModel>
) -> bool
[src]

Adds the data contined by another BulkWriteException to this one.

pub fn validate_bulk_write_result(
    result: Document,
    write_concern: WriteConcern
) -> Result<()>
[src]

Validates a bulk write result.

Trait Implementations

impl Clone for BulkWriteException[src]

impl Debug for BulkWriteException[src]

impl Display for BulkWriteException[src]

impl Error for BulkWriteException[src]

impl From<BulkWriteException> for Error[src]

impl PartialEq<BulkWriteException> for BulkWriteException[src]

impl StructuralPartialEq for BulkWriteException[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,