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

Fields

Fields

Fields

Fields

Fields

Fields

Trait Implementations

impl Clone for WriteModel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for WriteModel
[src]

Formats the value using the given formatter.