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

pub trait Upsert<T: Doc>: Debug {
    fn filter(&self) -> Document;
fn upsert(&self) -> Document; fn options(&self) -> 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(&self) -> 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...