[][src]Struct mongodb::error::WriteError

#[non_exhaustive]pub struct WriteError {
    pub code: i32,
    pub code_name: Option<String>,
    pub message: String,
}

An error that occurred during a write operation that wasn't due to being unable to satisfy a write concern.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
code: i32

Identifies the type of write error.

code_name: Option<String>

The name associated with the error code.

Note that the server will not return this in some cases, hence code_name being an Option.

message: String

A description of the error that occurred.

Trait Implementations

impl Clone for WriteError[src]

impl Debug for WriteError[src]

impl PartialEq<WriteError> for WriteError[src]

impl StructuralPartialEq for WriteError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,