Struct mongodb::coll::error::BulkWriteError
[−]
[src]
pub struct BulkWriteError { pub index: i32, pub code: i32, pub message: String, pub request: Option<WriteModel>, }
The error struct for a single bulk-write step, indicating the request and its index in the original bulk-write request.
Fields
index: i32
code: i32
message: String
request: Option<WriteModel>
Methods
impl BulkWriteError
[src]
fn new<T: ToString>(index: i32,
code: i32,
message: T,
request: Option<WriteModel>)
-> BulkWriteError
code: i32,
message: T,
request: Option<WriteModel>)
-> BulkWriteError
Returns a new BulkWriteError containing the provided error information.
fn parse(error: Document) -> Result<BulkWriteError>
Parses a Bson document into a BulkWriteError.
Trait Implementations
impl Debug for BulkWriteError
[src]
impl Clone for BulkWriteError
[src]
fn clone(&self) -> BulkWriteError
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