pub trait EntryUpdate<Col>: Send + Unpin{
    // Required method
    fn update(&mut self, doc: &mut Col::Contents);
}
Expand description

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

Required Methods§

source

fn update(&mut self, doc: &mut Col::Contents)

Updates doc with modifications to perform before returning the document.

Implementations on Foreign Types§

source§

impl<Col> EntryUpdate<Col> for ()

source§

fn update(&mut self, _doc: &mut Col::Contents)

Implementors§

source§

impl<F, Col> EntryUpdate<Col> for F
where F: FnMut(&mut Col::Contents) + Send + Unpin, Col: NamedCollection + SerializedCollection,