[−][src]Struct mongodb::coll::error::BulkWriteError
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]
pub fn new<T: ToString>(
index: i32,
code: i32,
message: T,
request: Option<WriteModel>
) -> BulkWriteError
[src]
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]
Parses a Bson document into a BulkWriteError.
Trait Implementations
impl Clone for BulkWriteError
[src]
fn clone(&self) -> BulkWriteError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<BulkWriteError> for BulkWriteError
[src]
fn eq(&self, other: &BulkWriteError) -> bool
[src]
fn ne(&self, other: &BulkWriteError) -> bool
[src]
impl Display for BulkWriteError
[src]
impl Debug for BulkWriteError
[src]
Auto Trait Implementations
impl Unpin for BulkWriteError
impl Sync for BulkWriteError
impl Send for BulkWriteError
impl UnwindSafe for BulkWriteError
impl RefUnwindSafe for BulkWriteError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self