Enum mongodb::coll::options::WriteModel
[−]
[src]
pub enum WriteModel { InsertOne { document: Document, }, DeleteOne { filter: Document, }, DeleteMany { filter: Document, }, ReplaceOne { filter: Document, replacement: Document, upsert: Option<bool>, }, UpdateOne { filter: Document, update: Document, upsert: Option<bool>, }, UpdateMany { filter: Document, update: Document, upsert: Option<bool>, }, }
Marker interface for writes that can be batched together.
Variants
InsertOne
Fields of InsertOne
document: Document |
DeleteOne
Fields of DeleteOne
filter: Document |
DeleteMany
Fields of DeleteMany
filter: Document |
ReplaceOne
Fields of ReplaceOne
filter: Document | |
replacement: Document | |
upsert: Option<bool> |
UpdateOne
Fields of UpdateOne
filter: Document | |
update: Document | |
upsert: Option<bool> |
UpdateMany
Fields of UpdateMany
filter: Document | |
update: Document | |
upsert: Option<bool> |
Trait Implementations
impl Debug for WriteModel
[src]
impl Clone for WriteModel
[src]
fn clone(&self) -> WriteModel
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