Trait bonsaidb::core::schema::EntryUpdate
source · pub trait EntryUpdate<Col>: Send + Unpinwhere
Col: SerializedCollection,{
// Required method
fn update(&mut self, doc: &mut <Col as SerializedCollection>::Contents);
}
Expand description
A function that is invoked when updating a document using the entry api.
Required Methods§
sourcefn update(&mut self, doc: &mut <Col as SerializedCollection>::Contents)
fn update(&mut self, doc: &mut <Col as SerializedCollection>::Contents)
Updates doc
with modifications to perform before returning the
document.