pub struct EffectDoc {
pub name: &'static str,
pub summary: &'static str,
pub dangerous: bool,
pub human_decision: &'static str,
pub agent_decision: &'static str,
pub example_commands: Vec<&'static str>,
}Expand description
An effect class with the policy decision it receives under each mode.
Fields§
§name: &'static strCanonical snake_case effect name.
summary: &'static strOne-line description of the effect class.
dangerous: boolWhether the class is dangerous (should be gated for an agent).
human_decision: &'static strThe decision a human gets (allow / approve / deny).
agent_decision: &'static strThe decision an agent gets under the default policy.
example_commands: Vec<&'static str>A few CLI commands the built-in classifier maps to this effect.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EffectDoc
impl RefUnwindSafe for EffectDoc
impl Send for EffectDoc
impl Sync for EffectDoc
impl Unpin for EffectDoc
impl UnsafeUnpin for EffectDoc
impl UnwindSafe for EffectDoc
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