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]
impl BulkWriteError
pub fn new<T: ToString>(
index: i32,
code: i32,
message: T,
request: Option<WriteModel>
) -> BulkWriteError
[src]
pub fn new<T: ToString>(
index: i32,
code: i32,
message: T,
request: Option<WriteModel>
) -> BulkWriteError
Returns a new BulkWriteError containing the provided error information.
pub fn parse(error: Document) -> Result<BulkWriteError>
[src]
pub fn parse(error: Document) -> Result<BulkWriteError>
Parses a Bson document into a BulkWriteError.
Trait Implementations
impl Debug for BulkWriteError
[src]
impl Debug for BulkWriteError
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 BulkWriteError
[src]
impl Clone for BulkWriteError
fn clone(&self) -> BulkWriteError
[src]
fn clone(&self) -> BulkWriteError
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 Display for BulkWriteError
[src]
impl Display for BulkWriteError
Auto Trait Implementations
impl Send for BulkWriteError
impl Send for BulkWriteError
impl Sync for BulkWriteError
impl Sync for BulkWriteError