pub struct SkillTriggers {
pub globs: Option<GlobSet>,
pub keywords: Vec<String>,
}Expand description
Auto-activation triggers for a skill (the triggers sub-table of the Agent Skills
open-standard).
Defined on the agent side, populated and reused by defect-config during parsing
(dependency direction: config → agent, not reversible). globs is compiled into a
globset::GlobSet at config parse time—invalid globs fail fast immediately, no
runtime parsing; None when no globs are configured. See
crate::hooks::builtin::SkillTriggersHook for matching logic.
Fields§
§globs: Option<GlobSet>Compiled file-path glob set; None means no globs were configured.
keywords: Vec<String>Prompt keywords (case-insensitive substring matching).
Trait Implementations§
Source§impl Clone for SkillTriggers
impl Clone for SkillTriggers
Source§fn clone(&self) -> SkillTriggers
fn clone(&self) -> SkillTriggers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillTriggers
impl Debug for SkillTriggers
Source§impl Default for SkillTriggers
impl Default for SkillTriggers
Source§fn default() -> SkillTriggers
fn default() -> SkillTriggers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkillTriggers
impl RefUnwindSafe for SkillTriggers
impl Send for SkillTriggers
impl Sync for SkillTriggers
impl Unpin for SkillTriggers
impl UnsafeUnpin for SkillTriggers
impl UnwindSafe for SkillTriggers
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