Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin {
    // Required methods
    fn name(&self) -> &str;
    fn settings(&self) -> PluginSettings;
}
Expand description

The base trait for all plugins (export and import).

Provides the common interface needed by Registry to register and resolve plugins by name and trigger pattern.

Required Methods§

Source

fn name(&self) -> &str

Return the canonical name of this plugin.

Source

fn settings(&self) -> PluginSettings

Return the plugin’s settings including trigger pattern.

Implementors§