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
DeleteOne
Fields
DeleteMany
Fields
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
Formats the value using the given formatter.