[][src]Trait avocado::ops::Upsert

pub trait Upsert<T: Doc>: Debug {
    fn filter(&self) -> Document;
fn upsert(&self) -> Document; fn options() -> WriteConcern { ... } }

An upsert (update or insert) operation.

Required methods

fn filter(&self) -> Document

Filter for restricting documents to upsert.

fn upsert(&self) -> Document

The upsert to perform on matching documents.

Loading content...

Provided methods

fn options() -> WriteConcern

Options for this upsert operation.

Loading content...

Implementations on Foreign Types

impl<T: Doc, U: Upsert<T>, '_> Upsert<T> for &'_ U
[src]

Loading content...

Implementors

Loading content...