pub trait EntryInsert<Col: SerializedCollection>: Send + Unpin {
    // Required method
    fn call(self) -> Col::Contents;
}
Expand description

A function that is invoked when inserting a document using the entry api.

Required Methods§

source

fn call(self) -> Col::Contents

Returns the contents of the new document.

Implementations on Foreign Types§

source§

impl<Col> EntryInsert<Col> for ()

source§

fn call(self) -> Col::Contents

Implementors§

source§

impl<F, Col> EntryInsert<Col> for F
where F: FnOnce() -> Col::Contents + Send + Unpin, Col: SerializedCollection,