Enum mongodb::coll::options::WriteModel
[−]
[src]
pub enum WriteModel { InsertOne { document: Document, }, DeleteOne { filter: Document, }, DeleteMany { filter: Document, }, ReplaceOne { filter: Document, replacement: Document, upsert: bool, }, UpdateOne { filter: Document, update: Document, upsert: bool, }, UpdateMany { filter: Document, update: Document, upsert: bool, }, }
Marker interface for writes that can be batched together.
Variants
InsertOne
Fields
document: Document |
DeleteOne
Fields
filter: Document |
DeleteMany
Fields
filter: Document |
ReplaceOne
Fields
filter: Document | |
replacement: Document | |
upsert: bool |
UpdateOne
Fields
filter: Document | |
update: Document | |
upsert: bool |
UpdateMany
Fields
filter: Document | |
update: Document | |
upsert: 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