pub struct AllowlistMatch {
pub tools: Vec<String>,
pub spawn_agent: bool,
}Expand description
The result of matching a profile tool allowlist against a tool pool.
Fields§
§tools: Vec<String>Names of real pool tools matched, deduped and in pool order. Never contains
spawn_agent (that is reported separately via Self::spawn_agent).
spawn_agent: boolWhether the virtual spawn_agent member matched any pattern. spawn_agent is
never returned as a real pool tool because its actual availability is governed by
the recursion depth gate (a child must get a fresh, depth-decremented instance,
not the parent’s). The caller decides whether to inject it based on this flag.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AllowlistMatch
impl RefUnwindSafe for AllowlistMatch
impl Send for AllowlistMatch
impl Sync for AllowlistMatch
impl Unpin for AllowlistMatch
impl UnsafeUnpin for AllowlistMatch
impl UnwindSafe for AllowlistMatch
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