pub struct RuleEntry {
pub name: String,
pub description: String,
pub path: PathBuf,
}Expand description
One discovered rule document.
Fields§
§name: StringFilename stem (e.g. “security” for security.md).
description: StringFirst non-empty line of the file, #/whitespace-stripped — same
“fallback to first body line” convention as skills. Capped at
prompt_files::MAX_RULE_DESCRIPTION_CHARS regardless of how verbose the line is.
path: PathBufAbsolute path — always resolvable by the Read tool regardless of which tier (project/scene/global) the file came from.
Trait Implementations§
impl StructuralPartialEq for RuleEntry
Auto Trait Implementations§
impl Forget for RuleEntry
impl Freeze for RuleEntry
impl Move for RuleEntry
impl RefUnwindSafe for RuleEntry
impl Send for RuleEntrywhere
RawVecInner: Send,
impl Sync for RuleEntrywhere
RawVecInner: Sync,
impl Unpin for RuleEntry
impl UnsafeUnpin for RuleEntry
impl UnwindSafe for RuleEntrywhere
RawVecInner: UnwindSafe,
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