use crate::plugin::host::{BuiltinPlugin, HostApi}; use crate::plugin::manifest::PluginManifest; use super::dispatch; use super::manifest; pub struct MyPlugin; impl BuiltinPlugin for MyPlugin { fn manifest(&self) -> &'static PluginManifest { &manifest::MANIFEST } fn ribbon(&self) -> Box { Box::new(super::MyPluginModule) } fn dispatch(&self, host: &mut dyn HostApi, cmd: &str) -> bool { dispatch::handle(host, cmd) } }