pub struct SkillMetadata { /* private fields */ }Expand description
Model-visible metadata for one skill.
Implementations§
Source§impl SkillMetadata
impl SkillMetadata
Sourcepub fn new(
name: impl Into<String>,
description: impl Into<String>,
skill_md_path: PathBuf,
root: PathBuf,
) -> Result<Self, SkillError>
pub fn new( name: impl Into<String>, description: impl Into<String>, skill_md_path: PathBuf, root: PathBuf, ) -> Result<Self, SkillError>
Creates validated skill metadata.
Normalization happens here so every consumer sees the same single-line
values: name is trimmed and description has its whitespace
collapsed. Fields that stay blank or contain control characters are
rejected.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Skill description from SKILL.md frontmatter.
Sourcepub fn skill_md_path(&self) -> &Path
pub fn skill_md_path(&self) -> &Path
Workspace-readable relative path to this skill’s SKILL.md.
Trait Implementations§
Source§impl Clone for SkillMetadata
impl Clone for SkillMetadata
Source§impl Debug for SkillMetadata
impl Debug for SkillMetadata
impl Eq for SkillMetadata
Source§impl PartialEq for SkillMetadata
impl PartialEq for SkillMetadata
impl StructuralPartialEq for SkillMetadata
Auto Trait Implementations§
impl Forget for SkillMetadata
impl Freeze for SkillMetadata
impl Move for SkillMetadata
impl RefUnwindSafe for SkillMetadata
impl Send for SkillMetadatawhere
RawVecInner: Send,
impl Sync for SkillMetadatawhere
RawVecInner: Sync,
impl Unpin for SkillMetadata
impl UnsafeUnpin for SkillMetadata
impl UnwindSafe for SkillMetadatawhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.