Trait pliantdb_local::core::schema::Collection[][src]

pub trait Collection: Debug + Send + Sync {
    fn collection_name() -> Result<CollectionName, InvalidNameError>;
fn define_views(schema: &mut Schematic) -> Result<(), Error>; }
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.

Implementors