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]
impl BulkWriteException
pub fn new(
processed: Vec<WriteModel>,
unprocessed: Vec<WriteModel>,
write_errors: Vec<BulkWriteError>,
write_concern_error: Option<WriteConcernError>
) -> BulkWriteException
[src]
pub 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.
pub fn add_unproccessed_model(&mut self, model: WriteModel)
[src]
pub fn add_unproccessed_model(&mut self, model: WriteModel)
Adds a model to the vector of unprocessed models
pub fn add_unproccessed_models(&mut self, models: Vec<WriteModel>)
[src]
pub fn add_unproccessed_models(&mut self, models: Vec<WriteModel>)
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]
pub 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.
pub fn validate_bulk_write_result(
result: Document,
write_concern: WriteConcern
) -> Result<()>
[src]
pub fn validate_bulk_write_result(
result: Document,
write_concern: WriteConcern
) -> Result<()>
Validates a bulk write result.
Trait Implementations
impl Debug for BulkWriteException
[src]
impl Debug for BulkWriteException
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for BulkWriteException
[src]
impl Clone for BulkWriteException
fn clone(&self) -> BulkWriteException
[src]
fn clone(&self) -> BulkWriteException
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Error for BulkWriteException
[src]
impl Error for BulkWriteException
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for BulkWriteException
[src]
impl Display for BulkWriteException
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<BulkWriteException> for Error
[src]
impl From<BulkWriteException> for Error
fn from(err: BulkWriteException) -> Error
[src]
fn from(err: BulkWriteException) -> Error
Performs the conversion.
Auto Trait Implementations
impl Send for BulkWriteException
impl Send for BulkWriteException
impl Sync for BulkWriteException
impl Sync for BulkWriteException