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
DeleteOneFields
DeleteManyFields
ReplaceOneFields
filter: Document | |
replacement: Document | |
upsert: bool | |
UpdateOneFields
filter: Document | |
update: Document | |
upsert: bool | |
UpdateManyFields
filter: Document | |
update: Document | |
upsert: bool | |
Trait Implementations
Formats the value using the given formatter.