pub trait Plugin: Send + Sync {
// Required methods
fn new() -> Self
where Self: Sized;
fn run_plugin(&self, input: PluginInput) -> Result<PluginOutput, String>;
}Required Methods§
fn new() -> Selfwhere
Self: Sized,
Sourcefn run_plugin(&self, input: PluginInput) -> Result<PluginOutput, String>
fn run_plugin(&self, input: PluginInput) -> Result<PluginOutput, String>
执行插件