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