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

pub trait Collection: Send + Sync + Debug {
    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...


impl Collection for Basic[src]

impl Collection for BasicCollectionWithNoViews[src]

impl Collection for BasicCollectionWithOnlyBrokenParentId[src]

impl Collection for UnassociatedCollection[src]

Loading content...