pub struct PolicySet {
pub allow_capabilities: Vec<Capability>,
pub gate_capabilities: Vec<Capability>,
pub max_tool_runtime_secs: u64,
pub max_events_per_turn: u64,
}Expand description
A set of policy rules governing agent capabilities.
Fields§
§allow_capabilities: Vec<Capability>§gate_capabilities: Vec<Capability>§max_tool_runtime_secs: u64§max_events_per_turn: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for PolicySet
impl<'de> Deserialize<'de> for PolicySet
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 PolicySet
impl RefUnwindSafe for PolicySet
impl Send for PolicySet
impl Sync for PolicySet
impl Unpin for PolicySet
impl UnsafeUnpin for PolicySet
impl UnwindSafe for PolicySet
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