Trait bonsaidb_core::document::OwnedDocuments
source · pub trait OwnedDocuments {
// Required method
fn collection_documents<C: SerializedCollection>(
&self
) -> Result<Vec<CollectionDocument<C>>, Error>;
}
Expand description
Helper functions for a slice of OwnedDocument
s.
Required Methods§
sourcefn collection_documents<C: SerializedCollection>(
&self
) -> Result<Vec<CollectionDocument<C>>, Error>
fn collection_documents<C: SerializedCollection>( &self ) -> Result<Vec<CollectionDocument<C>>, Error>
Returns a list of deserialized documents.