Trait pliantdb::local::core::schema::Collection[][src]

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

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

Required methods

pub fn collection_id() -> Id[src]

The Id of this collection.

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

Defines all Views in this collection in schema.

Loading content...

Implementors

Loading content...