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