pub struct SkillSummary {
pub dir_stem: String,
pub name: String,
pub description: Option<String>,
pub dir_path: PathBuf,
pub file_path: PathBuf,
pub size_bytes: u64,
pub has_assets: bool,
}Expand description
Lightweight metadata for one skill, returned by
SkillsRoot::list. Strips the body to keep listings cheap.
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.
size_bytes: u64SKILL.md size in bytes; useful for cheap UI hints.
has_assets: boolTrue if the skill directory contains sibling files or
subdirectories beyond SKILL.md (e.g. scripts/,
reference/). Listing the sibling paths themselves is
deferred; callers that need the inventory can stat the
directory directly via Self::dir_path.
Trait Implementations§
Source§impl Clone for SkillSummary
impl Clone for SkillSummary
Source§fn clone(&self) -> SkillSummary
fn clone(&self) -> SkillSummary
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 moreSource§impl Debug for SkillSummary
impl Debug for SkillSummary
Auto Trait Implementations§
impl Freeze for SkillSummary
impl RefUnwindSafe for SkillSummary
impl Send for SkillSummary
impl Sync for SkillSummary
impl Unpin for SkillSummary
impl UnsafeUnpin for SkillSummary
impl UnwindSafe for SkillSummary
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