pub struct Item {
pub kind: ItemKind,
pub name: String,
pub about: String,
pub scope: Scope,
pub path: PathBuf,
pub line: Option<usize>,
}Expand description
A skill, subagent, command, hook or MCP server, and the file that defines it.
Fields§
§kind: ItemKind§name: String§about: StringWhat it’s for, as the agent is told: a description, or the hook’s command.
scope: Scope§path: PathBuf§line: Option<usize>The line it starts on, 1-based, where that isn’t the top.
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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