pub struct SkillInfo {
pub name: String,
pub description: String,
pub path: PathBuf,
}Expand description
A loaded skill, without its body.
Name and description are what a host needs to show a skill set to a person
— in a client UI, as protocol commands, in a run’s log, or in a test
asserting the expected skills loaded. The body stays behind load_skill,
which is what keeps skills cheap in context: descriptions are always
present, bodies arrive only when asked for.
Fields§
§name: String§description: String§path: PathBufThe SKILL.md this came from. With several roots registered, this is
how a host tells which one won.
Trait Implementations§
impl Eq for SkillInfo
impl StructuralPartialEq for SkillInfo
Auto Trait Implementations§
impl Freeze for SkillInfo
impl RefUnwindSafe for SkillInfo
impl Send for SkillInfo
impl Sync for SkillInfo
impl Unpin for SkillInfo
impl UnsafeUnpin for SkillInfo
impl UnwindSafe for SkillInfo
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§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.