[][src]Enum mongodb::coll::options::WriteModel

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

InsertOne

Fields of InsertOne

document: Document
DeleteOne

Fields of DeleteOne

filter: Document
DeleteMany

Fields of DeleteMany

filter: Document
ReplaceOne

Fields of ReplaceOne

filter: Documentreplacement: Documentupsert: Option<bool>
UpdateOne

Fields of UpdateOne

filter: Documentupdate: Documentupsert: Option<bool>
UpdateMany

Fields of UpdateMany

filter: Documentupdate: Documentupsert: Option<bool>

Trait Implementations

impl Clone for WriteModel[src]

impl PartialEq<WriteModel> for WriteModel[src]

impl Debug for WriteModel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self