pub struct ExecutablePluginCommand {
pub command: PluginCommand,
pub handler: Option<CommandHandler>,
}Expand description
Plugin command with handler
Fields§
§command: PluginCommand§handler: Option<CommandHandler>Implementations§
Source§impl ExecutablePluginCommand
impl ExecutablePluginCommand
Sourcepub fn execute(
&self,
args: HashMap<String, String>,
context: &CommandContext,
) -> Result<CommandResult, AgentError>
pub fn execute( &self, args: HashMap<String, String>, context: &CommandContext, ) -> Result<CommandResult, AgentError>
Execute the command with given arguments
Trait Implementations§
Source§impl Clone for ExecutablePluginCommand
impl Clone for ExecutablePluginCommand
Source§fn clone(&self) -> ExecutablePluginCommand
fn clone(&self) -> ExecutablePluginCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutablePluginCommand
impl !RefUnwindSafe for ExecutablePluginCommand
impl Send for ExecutablePluginCommand
impl Sync for ExecutablePluginCommand
impl Unpin for ExecutablePluginCommand
impl UnsafeUnpin for ExecutablePluginCommand
impl !UnwindSafe for ExecutablePluginCommand
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