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

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

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

Required methods

pub fn collection_name() -> Result<CollectionName, InvalidNameError>[src]

The Id of this collection.

pub fn define_views(schema: &mut Schematic) -> Result<(), Error>[src]

Defines all Views in this collection in schema.

Loading content...

Implementors

Loading content...