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 View
s in this collection in schema
.
Implementors
impl Collection for Basic
[src]
impl Collection for Basic
[src]pub fn collection_name() -> Result<CollectionName, InvalidNameError>
[src]
pub fn define_views(schema: &mut Schematic) -> Result<(), Error>
[src]
impl Collection for BasicCollectionWithNoViews
[src]
impl Collection for BasicCollectionWithNoViews
[src]pub fn collection_name() -> Result<CollectionName, InvalidNameError>
[src]
pub fn define_views(_schema: &mut Schematic) -> Result<(), Error>
[src]
impl Collection for BasicCollectionWithOnlyBrokenParentId
[src]
impl Collection for BasicCollectionWithOnlyBrokenParentId
[src]pub fn collection_name() -> Result<CollectionName, InvalidNameError>
[src]
pub fn define_views(schema: &mut Schematic) -> Result<(), Error>
[src]
impl Collection for UnassociatedCollection
[src]
impl Collection for UnassociatedCollection
[src]