Derive Macro bonsaidb_macros::Api
source · #[derive(Api)]
{
// Attributes available to this derive:
#[api]
}
Expand description
Derives the bonsaidb::core::api::Api
trait.
#[api(name = "Name", authority = "Authority", response = ResponseType, error = ErrorType, core = bonsaidb::core)]
authority
, response
, error
and core
are optional