pub struct Plugin {
pub manifest: PluginManifest,
pub root: PathBuf,
}Expand description
A loaded plugin (manifest + root path for resolving commands/skills).
Fields§
§manifest: PluginManifest§root: PathBufImplementations§
Source§impl Plugin
impl Plugin
Sourcepub fn command_name(&self, base: &str) -> String
pub fn command_name(&self, base: &str) -> String
Namespaced command name: plugin-name:command-name
Sourcepub fn skill_name(&self, base: &str) -> String
pub fn skill_name(&self, base: &str) -> String
Namespaced skill name: plugin-name:skill-name
Sourcepub fn commands_dir(&self) -> PathBuf
pub fn commands_dir(&self) -> PathBuf
Path to plugin’s commands directory
Sourcepub fn skills_dir(&self) -> PathBuf
pub fn skills_dir(&self) -> PathBuf
Path to plugin’s skills directory
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
impl UnwindSafe for Plugin
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