pub struct Skill {
pub dir_stem: String,
pub name: String,
pub description: Option<String>,
pub dir_path: PathBuf,
pub file_path: PathBuf,
pub body: String,
pub extra: BTreeMap<String, String>,
pub has_assets: bool,
}Expand description
Full skill record returned by SkillsRoot::get.
Fields§
§dir_stem: StringDirectory stem (the basename of <stem>/ under the root).
The canonical handle for lookup.
name: StringFrontmatter name if present; falls back to dir_stem.
description: Option<String>Frontmatter description if present.
dir_path: PathBufAbsolute path to the skill’s directory.
file_path: PathBufAbsolute path to the source SKILL.md.
body: StringMarkdown body after the frontmatter block (trimmed of leading/trailing blank lines).
extra: BTreeMap<String, String>Frontmatter keys other than the typed ones. Preserves unknown future fields verbatim as raw strings.
has_assets: boolTrue if the skill directory contains sibling files or
subdirectories beyond SKILL.md. See
SkillSummary::has_assets for the deferred-inventory
rationale.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Skill
impl RefUnwindSafe for Skill
impl Send for Skill
impl Sync for Skill
impl Unpin for Skill
impl UnsafeUnpin for Skill
impl UnwindSafe for Skill
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