Struct mongodb::coll::results::UpdateResult [−][src]
pub struct UpdateResult { pub acknowledged: bool, pub matched_count: i32, pub modified_count: i32, pub upserted_id: Option<Bson>, pub write_exception: Option<WriteException>, }
Results for an update operation.
Fields
acknowledged: bool
matched_count: i32
modified_count: i32
upserted_id: Option<Bson>
write_exception: Option<WriteException>
Methods
impl UpdateResult
[src]
impl UpdateResult
pub fn new(doc: Document, exception: Option<WriteException>) -> UpdateResult
[src]
pub fn new(doc: Document, exception: Option<WriteException>) -> UpdateResult
Extracts server reply information into a result.
pub fn with_bulk_result(result: BulkUpdateResult) -> UpdateResult
[src]
pub fn with_bulk_result(result: BulkUpdateResult) -> UpdateResult
Trait Implementations
impl Clone for UpdateResult
[src]
impl Clone for UpdateResult
fn clone(&self) -> UpdateResult
[src]
fn clone(&self) -> UpdateResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for UpdateResult
impl Send for UpdateResult
impl Sync for UpdateResult
impl Sync for UpdateResult