Struct mongodb::coll::error::BulkWriteException
[−]
[src]
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
Methods
impl BulkWriteException
[src]
fn new(processed: Vec<WriteModel>, unprocessed: Vec<WriteModel>, write_errors: Vec<BulkWriteError>, write_concern_error: Option<WriteConcernError>) -> BulkWriteException
Returns a new BulkWriteException containing the provided error information.
fn add_unproccessed_model(&mut self, model: WriteModel)
Adds a model to the vector of unprocessed models
fn add_unproccessed_models(&mut self, models: Vec<WriteModel>)
Adds a vector of models to the vector of unprocessed models.
fn add_bulk_write_exception(&mut self, exception_opt: Option<BulkWriteException>, models: Vec<WriteModel>) -> bool
Adds the data contined by another BulkWriteException to this one.
fn validate_bulk_write_result(result: Document, write_concern: WriteConcern) -> Result<()>
Validates a bulk write result.
Trait Implementations
impl Clone for BulkWriteException
[src]
fn clone(&self) -> BulkWriteException
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
impl Debug for BulkWriteException
[src]
impl Error for BulkWriteException
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more