pub struct AgentPolicy {
pub allow: Vec<String>,
pub deny: Vec<String>,
pub rate_limit: Option<RateLimitPolicy>,
}Expand description
Per-agent tool policy.
Fields§
§allow: Vec<String>§deny: Vec<String>§rate_limit: Option<RateLimitPolicy>Trait Implementations§
Source§impl Clone for AgentPolicy
impl Clone for AgentPolicy
Source§fn clone(&self) -> AgentPolicy
fn clone(&self) -> AgentPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentPolicy
impl Debug for AgentPolicy
Source§impl<'de> Deserialize<'de> for AgentPolicy
impl<'de> Deserialize<'de> for AgentPolicy
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
Auto Trait Implementations§
impl Freeze for AgentPolicy
impl RefUnwindSafe for AgentPolicy
impl Send for AgentPolicy
impl Sync for AgentPolicy
impl Unpin for AgentPolicy
impl UnsafeUnpin for AgentPolicy
impl UnwindSafe for AgentPolicy
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