pub struct ModeSpec {
pub slug: ModeSlug,
pub purpose: String,
pub allowed_capabilities: BTreeSet<Capability>,
pub approval_rules: BTreeMap<Capability, ApprovalRule>,
pub validation_minimums: ValidationMinimums,
pub reporting: ReportingPolicy,
pub patch_budget: PatchBudget,
}Expand description
A declarative execution mode loaded from .agent/modes/*.yaml.
Fields§
§slug: ModeSlugStable mode identifier.
purpose: StringThe purpose of the mode.
allowed_capabilities: BTreeSet<Capability>Capabilities the mode is allowed to request.
approval_rules: BTreeMap<Capability, ApprovalRule>Mode-specific approval overrides.
validation_minimums: ValidationMinimumsVerification rules that must hold for the mode.
reporting: ReportingPolicyReporting constraints attached to the mode.
patch_budget: PatchBudgetThe default patch budget for this mode.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModeSpec
impl<'de> Deserialize<'de> for ModeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModeSpec
impl StructuralPartialEq for ModeSpec
Auto Trait Implementations§
impl Freeze for ModeSpec
impl RefUnwindSafe for ModeSpec
impl Send for ModeSpec
impl Sync for ModeSpec
impl Unpin for ModeSpec
impl UnsafeUnpin for ModeSpec
impl UnwindSafe for ModeSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.