pub struct ExampleCustomPlugin { /* private fields */ }Expand description
Example plugin implementation
Implementations§
Trait Implementations§
Source§impl Debug for ExampleCustomPlugin
impl Debug for ExampleCustomPlugin
Source§impl Default for ExampleCustomPlugin
impl Default for ExampleCustomPlugin
Source§impl ExplanationPlugin for ExampleCustomPlugin
impl ExplanationPlugin for ExampleCustomPlugin
Source§fn plugin_name(&self) -> &str
fn plugin_name(&self) -> &str
Plugin name
Source§fn plugin_version(&self) -> &str
fn plugin_version(&self) -> &str
Plugin version
Source§fn plugin_description(&self) -> &str
fn plugin_description(&self) -> &str
Plugin description
Plugin author
Source§fn supported_input_types(&self) -> Vec<InputType>
fn supported_input_types(&self) -> Vec<InputType>
Supported input types
Source§fn supported_output_types(&self) -> Vec<OutputType>
fn supported_output_types(&self) -> Vec<OutputType>
Supported output types
Source§fn capabilities(&self) -> PluginCapabilities
fn capabilities(&self) -> PluginCapabilities
Plugin capabilities
Source§fn initialize(&mut self, _config: &PluginConfig) -> SklResult<()>
fn initialize(&mut self, _config: &PluginConfig) -> SklResult<()>
Initialize the plugin
Source§fn execute(&self, input: &PluginInput) -> SklResult<PluginOutput>
fn execute(&self, input: &PluginInput) -> SklResult<PluginOutput>
Execute the explanation method
Source§fn validate_input(&self, input: &PluginInput) -> SklResult<()>
fn validate_input(&self, input: &PluginInput) -> SklResult<()>
Validate input before execution
Source§fn metadata(&self) -> PluginMetadata
fn metadata(&self) -> PluginMetadata
Get plugin metadata
Auto Trait Implementations§
impl Freeze for ExampleCustomPlugin
impl RefUnwindSafe for ExampleCustomPlugin
impl Send for ExampleCustomPlugin
impl Sync for ExampleCustomPlugin
impl Unpin for ExampleCustomPlugin
impl UnwindSafe for ExampleCustomPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more