pub struct GovernancePolicy {
pub default_action: Option<PolicyAction>,
pub rules: Vec<PolicyRule>,
pub vetoed_tools: Vec<String>,
pub rate_limits: Vec<RateLimitSpec>,
pub constraints: Vec<ConstraintSpec>,
pub surface_denied_in_system: bool,
}Fields§
§default_action: Option<PolicyAction>§rules: Vec<PolicyRule>§vetoed_tools: Vec<String>§rate_limits: Vec<RateLimitSpec>§constraints: Vec<ConstraintSpec>§surface_denied_in_system: boolI5: when true (default), the runner pre-filters denied tools from the schema. Mirrors Node.
Implementations§
Source§impl GovernancePolicy
impl GovernancePolicy
pub fn allow_all() -> Self
pub fn into_kernel_event(self) -> KernelInputEvent
Trait Implementations§
Source§impl Clone for GovernancePolicy
impl Clone for GovernancePolicy
Source§fn clone(&self) -> GovernancePolicy
fn clone(&self) -> GovernancePolicy
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 moreAuto Trait Implementations§
impl Freeze for GovernancePolicy
impl RefUnwindSafe for GovernancePolicy
impl Send for GovernancePolicy
impl Sync for GovernancePolicy
impl Unpin for GovernancePolicy
impl UnsafeUnpin for GovernancePolicy
impl UnwindSafe for GovernancePolicy
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