Trait bonsaidb::core::api::Api[][src]

pub trait Api: 'static + Serialize + for<'de> Deserialize<'de> + Send + Sync + Debug {
    type Response: Clone + Serialize + for<'de> Deserialize<'de> + Send + Sync + Debug;
    type Error: ApiError;
    fn name() -> ApiName;
}
Expand description

An API request type.

Associated Types

The type that represents an API response. This type will be sent to clients from the server.

The error type that this can return.

Required methods

Returns the unique name of this api.

Implementors