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
InsertOneFields
document: Document |
DeleteOneFields
filter: Document |
DeleteManyFields
filter: Document |
ReplaceOneFields
filter: Document | |
replacement: Document | |
upsert: bool |
UpdateOneFields
filter: Document | |
update: Document | |
upsert: bool |
UpdateManyFields
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