pub struct DiscoveredSkill { /* private fields */ }Expand description
One validated declarative skill whose body is loaded only on invocation.
Implementations§
Source§impl DiscoveredSkill
impl DiscoveredSkill
Sourcepub const fn metadata(&self) -> &SkillMetadata
pub const fn metadata(&self) -> &SkillMetadata
Returns prompt-safe skill metadata.
Sourcepub fn invoke(&self, invocation: &str) -> Result<LoadedSkill, CodingError>
pub fn invoke(&self, invocation: &str) -> Result<LoadedSkill, CodingError>
Loads the body after explicit /skill:name [args] invocation.
§Errors
Rejects invalid syntax, changed metadata, oversized content, and unsafe referenced paths.
Trait Implementations§
Source§impl Clone for DiscoveredSkill
impl Clone for DiscoveredSkill
Source§impl Debug for DiscoveredSkill
impl Debug for DiscoveredSkill
impl Eq for DiscoveredSkill
Source§impl PartialEq for DiscoveredSkill
impl PartialEq for DiscoveredSkill
impl StructuralPartialEq for DiscoveredSkill
Auto Trait Implementations§
impl Freeze for DiscoveredSkill
impl RefUnwindSafe for DiscoveredSkill
impl Send for DiscoveredSkill
impl Sync for DiscoveredSkill
impl Unpin for DiscoveredSkill
impl UnsafeUnpin for DiscoveredSkill
impl UnwindSafe for DiscoveredSkill
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§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.