pub struct DiscoveredSkill {
pub name: String,
pub description: String,
pub path: PathBuf,
pub source: SkillSource,
pub plugin: Option<String>,
pub size_bytes: u64,
}Fields§
§name: StringSkill name (from frontmatter name, falls back to directory name).
description: StringOne-line description from frontmatter (empty if not present).
path: PathBufPath to the skill’s markdown file (the one we’d share).
source: SkillSourceWhere it was discovered.
plugin: Option<String>Plugin name, if source == Plugin.
size_bytes: u64File size in bytes.
Implementations§
Source§impl DiscoveredSkill
impl DiscoveredSkill
Sourcepub fn semantic_key(&self) -> String
pub fn semantic_key(&self) -> String
Stable key used to compare against shared knowledge units. Matches
the semantic key shape in src/hive/mod.rs (skill:<lowercased-name>).
True if the skill body is small enough to fit in a hive Skill unit.
Trait Implementations§
Source§impl Clone for DiscoveredSkill
impl Clone 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more