Skip to main content

PluginApi

Trait PluginApi 

Source
pub trait PluginApi: Send + Sync {
    // Required method
    fn execute(
        &self,
        args: &[Value],
        context: &PluginContext<'_>,
    ) -> Result<PluginResult>;
}
Expand description

Minimal plugin API — just what the assertion engine needs.

Required Methods§

Source

fn execute( &self, args: &[Value], context: &PluginContext<'_>, ) -> Result<PluginResult>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§