Struct mongodb::coll::error::WriteError
[−]
[src]
pub struct WriteError { pub code: i32, pub message: String, }
The error struct for a write-related error.
Fields
code: i32
message: String
Methods
impl WriteError
[src]
fn new<T: ToString>(code: i32, message: T) -> WriteError
Returns a new WriteError containing the provided error information.
fn parse(error: Document) -> Result<WriteError>
Parses a Bson document into a WriteError.
Trait Implementations
impl Debug for WriteError
[src]
impl Clone for WriteError
[src]
fn clone(&self) -> WriteError
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