pub trait Collection: Debug + Send + Sync {
    fn collection_name() -> CollectionName;
fn define_views(schema: &mut Schematic) -> Result<(), Error>; fn encryption_key() -> Option<KeyId> { ... } }
Expand description

A namespaced collection of Document<Self> items and views.

Required methods

The Id of this collection.

Defines all Views in this collection in schema.

Provided methods

If a KeyId is returned, this collection will be stored encrypted at-rest using the key specified.

Implementors