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

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 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

impl Debug for BulkWriteError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for BulkWriteError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.