Derive Macro bonsaidb::core::api::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