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

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

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

Required methods

fn id() -> Id[src]

The Id of this collection.

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

Defines all Views in this collection in schema.

Loading content...

Implementors

Loading content...