Trait bonsaidb::core::schema::EntryInsert
source · pub trait EntryInsert<Col>: Send + Unpinwhere
Col: SerializedCollection,{
// Required method
fn call(self) -> <Col as SerializedCollection>::Contents;
}
Expand description
A function that is invoked when inserting a document using the entry api.
Required Methods§
sourcefn call(self) -> <Col as SerializedCollection>::Contents
fn call(self) -> <Col as SerializedCollection>::Contents
Returns the contents of the new document.