pub struct SkillCatalog { /* private fields */ }Expand description
Deterministic catalog of available skill metadata.
Implementations§
Source§impl SkillCatalog
impl SkillCatalog
Sourcepub fn load_from_roots<I>(roots: I) -> Result<Self, SkillError>where
I: IntoIterator<Item = PathBuf>,
pub fn load_from_roots<I>(roots: I) -> Result<Self, SkillError>where
I: IntoIterator<Item = PathBuf>,
Loads skill metadata by scanning configured roots for SKILL.md files.
Sourcepub fn from_metadata(skills: Vec<SkillMetadata>) -> Result<Self, SkillError>
pub fn from_metadata(skills: Vec<SkillMetadata>) -> Result<Self, SkillError>
Creates a deterministic catalog from metadata.
Sourcepub fn skills(&self) -> &[SkillMetadata]
pub fn skills(&self) -> &[SkillMetadata]
Ordered skill metadata.
Sourcepub fn warnings(&self) -> &[SkillLoadWarning]
pub fn warnings(&self) -> &[SkillLoadWarning]
Non-fatal load warnings.
Sourcepub fn to_stable_prefix_message_text(&self) -> Option<String>
pub fn to_stable_prefix_message_text(&self) -> Option<String>
Renders this catalog as a cacheable stable-prefix message.
The rendered text intentionally contains only metadata and usage rules.
Full SKILL.md bodies stay out of the prefix.
Trait Implementations§
Source§impl Clone for SkillCatalog
impl Clone for SkillCatalog
Source§impl Debug for SkillCatalog
impl Debug for SkillCatalog
impl Eq for SkillCatalog
Source§impl PartialEq for SkillCatalog
impl PartialEq for SkillCatalog
impl StructuralPartialEq for SkillCatalog
Auto Trait Implementations§
impl Forget for SkillCatalog
impl Freeze for SkillCatalogwhere
*const u8 is !null: Freeze,
PhantomData<SkillMetadata>: Freeze,
PhantomData<SkillLoadWarning>: Freeze,
impl Move for SkillCatalog
impl RefUnwindSafe for SkillCatalog
impl Send for SkillCatalog
impl Sync for SkillCatalogwhere
RawVecInner: Sync,
impl Unpin for SkillCatalog
impl UnsafeUnpin for SkillCatalogwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SkillMetadata>: UnsafeUnpin,
PhantomData<SkillLoadWarning>: UnsafeUnpin,
impl UnwindSafe for SkillCatalog
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.