pub trait Plugin: Send + Sync + 'static {
    fn call(
        &self,
        datastore: Arc<dyn Datastore + Send + Sync + 'static>,
        arg: Value
    ) -> Result<Value, Error>; }
Expand description

Plugins should implement this trait.

Required Methods

Executes the plugin. Returns JSON that will be sent back to the calling client.

Arguments
  • datastore: The datastore.
  • arg: The argument from the calling client.

Implementors