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

Fields of InsertOne

Fields of DeleteOne

Fields of DeleteMany

Fields of ReplaceOne

Fields of UpdateOne

Fields of UpdateMany

Trait Implementations

impl Debug for WriteModel
[src]

Formats the value using the given formatter.

impl Clone for WriteModel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more