Trait pliantdb_core::schema::collection::Collection[][src]

pub trait Collection: Debug + Send + Sync {
    fn collection_id() -> Id;
fn define_views(schema: &mut Schematic); }

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

Required methods

fn collection_id() -> Id[src]

The Id of this collection.

fn define_views(schema: &mut Schematic)[src]

Defines all Views in this collection in schema.

Loading content...

Implementors

Loading content...