Crate bonsaidb_macros
source ·Expand description
Macros BonsaiDb.
Derive Macros
- Derives the
bonsaidb::core::api::Api
trait. - Derives the
bonsaidb::core::schema::Collection
trait.#[collection(authority = "Authority", name = "Name", views = [a, b, c])]
- Derives the
bonsaidb::files::FileConfig
trait. - Derives the
bonsaidb::core::key::Key
trait. - Derives the
bonsaidb::core::schema::Schema
trait. - Derives the
bonsaidb::core::schema::View
trait. - Derives the
bonsaidb::core::schema::ViewSchema
trait.#[view_schema(version = 1, policy = Unique, view=ViewType, mapped_key=KeyType<'doc>)]