pub trait TemplatePluginFactory: Send + Sync {
// Required method
fn create_plugin(&self) -> Result<Box<dyn TemplatePlugin>, PluginError>;
}
Expand description
Helper trait for creating template plugins
Required Methods§
Sourcefn create_plugin(&self) -> Result<Box<dyn TemplatePlugin>, PluginError>
fn create_plugin(&self) -> Result<Box<dyn TemplatePlugin>, PluginError>
Create a new template plugin instance