pub struct InstalledPluginAssets {
pub plugin: String,
pub marketplace: String,
pub plugin_dir: PathBuf,
pub manifest: PluginManifest,
}Fields§
§plugin: String§marketplace: String§plugin_dir: PathBuf§manifest: PluginManifestImplementations§
Source§impl InstalledPluginAssets
impl InstalledPluginAssets
Sourcepub fn skills_dir(&self) -> PathBuf
pub fn skills_dir(&self) -> PathBuf
Primary skills directory — the first entry from the manifest’s
skills field, or the default "skills" when absent.
Sourcepub fn skills_dirs(&self) -> Vec<PathBuf>
pub fn skills_dirs(&self) -> Vec<PathBuf>
All skills directories declared in the manifest.
When skills is absent this returns a single default "skills"
entry (same as skills_dir()). When it is a CC-style array
(["./skills/foo", "./skills/bar"]) each entry is resolved
relative to plugin_dir, allowing multiple skill directories
to contribute.
pub fn commands_dir(&self) -> PathBuf
pub fn hooks_file(&self) -> PathBuf
Trait Implementations§
Source§impl Clone for InstalledPluginAssets
impl Clone for InstalledPluginAssets
Source§fn clone(&self) -> InstalledPluginAssets
fn clone(&self) -> InstalledPluginAssets
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstalledPluginAssets
impl RefUnwindSafe for InstalledPluginAssets
impl Send for InstalledPluginAssets
impl Sync for InstalledPluginAssets
impl Unpin for InstalledPluginAssets
impl UnsafeUnpin for InstalledPluginAssets
impl UnwindSafe for InstalledPluginAssets
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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