pub struct ActionBudgetConfig {
pub default_budget: Option<usize>,
pub rules: Vec<ActionBudgetRuleConfig>,
}Expand description
Action budget guardrail configuration.
Fields§
§default_budget: Option<usize>Default budget for tools not matching any rule.
rules: Vec<ActionBudgetRuleConfig>Per-tool budget rules.
Trait Implementations§
Source§impl Clone for ActionBudgetConfig
impl Clone for ActionBudgetConfig
Source§fn clone(&self) -> ActionBudgetConfig
fn clone(&self) -> ActionBudgetConfig
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 ActionBudgetConfig
impl Debug for ActionBudgetConfig
Source§impl Default for ActionBudgetConfig
impl Default for ActionBudgetConfig
Source§fn default() -> ActionBudgetConfig
fn default() -> ActionBudgetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ActionBudgetConfig
impl<'de> Deserialize<'de> for ActionBudgetConfig
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
Source§impl PartialEq for ActionBudgetConfig
impl PartialEq for ActionBudgetConfig
Source§fn eq(&self, other: &ActionBudgetConfig) -> bool
fn eq(&self, other: &ActionBudgetConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionBudgetConfig
impl Serialize for ActionBudgetConfig
impl StructuralPartialEq for ActionBudgetConfig
Auto Trait Implementations§
impl Freeze for ActionBudgetConfig
impl RefUnwindSafe for ActionBudgetConfig
impl Send for ActionBudgetConfig
impl Sync for ActionBudgetConfig
impl Unpin for ActionBudgetConfig
impl UnsafeUnpin for ActionBudgetConfig
impl UnwindSafe for ActionBudgetConfig
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