pub struct ActionBudgetRuleConfig {
pub tool_pattern: String,
pub max_calls: usize,
}Expand description
A single action budget rule in TOML format.
Fields§
§tool_pattern: StringTool name pattern (exact or glob with *).
max_calls: usizeMaximum number of calls allowed.
Trait Implementations§
Source§impl Clone for ActionBudgetRuleConfig
impl Clone for ActionBudgetRuleConfig
Source§fn clone(&self) -> ActionBudgetRuleConfig
fn clone(&self) -> ActionBudgetRuleConfig
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 ActionBudgetRuleConfig
impl Debug for ActionBudgetRuleConfig
Source§impl<'de> Deserialize<'de> for ActionBudgetRuleConfig
impl<'de> Deserialize<'de> for ActionBudgetRuleConfig
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 ActionBudgetRuleConfig
impl PartialEq for ActionBudgetRuleConfig
Source§fn eq(&self, other: &ActionBudgetRuleConfig) -> bool
fn eq(&self, other: &ActionBudgetRuleConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionBudgetRuleConfig
impl Serialize for ActionBudgetRuleConfig
impl StructuralPartialEq for ActionBudgetRuleConfig
Auto Trait Implementations§
impl Freeze for ActionBudgetRuleConfig
impl RefUnwindSafe for ActionBudgetRuleConfig
impl Send for ActionBudgetRuleConfig
impl Sync for ActionBudgetRuleConfig
impl Unpin for ActionBudgetRuleConfig
impl UnsafeUnpin for ActionBudgetRuleConfig
impl UnwindSafe for ActionBudgetRuleConfig
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