Crate bonsaidb_macros

Crate bonsaidb_macros 

Source
Expand description

Macros BonsaiDb.

Derive Macrosยง

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