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