pub struct EffectivePolicy {
pub allowed_capabilities: BTreeSet<Capability>,
pub approval_rules: BTreeMap<Capability, ApprovalRule>,
pub forbidden_paths: Vec<PathPattern>,
pub dependency_policy: DependencyPolicy,
pub reporting_policy: ReportingPolicy,
pub validation_minimums: ValidationMinimums,
}Expand description
The fully resolved policy used by a run.
Fields§
§allowed_capabilities: BTreeSet<Capability>Capabilities the current mode is allowed to attempt.
approval_rules: BTreeMap<Capability, ApprovalRule>Approval rules attached to individual capabilities.
forbidden_paths: Vec<PathPattern>Workspace paths that must remain untouched.
dependency_policy: DependencyPolicyDependency modification policy.
reporting_policy: ReportingPolicyReporting constraints for the final report.
validation_minimums: ValidationMinimumsVerification minimums enforced by policy.
Trait Implementations§
Source§impl Clone for EffectivePolicy
impl Clone for EffectivePolicy
Source§fn clone(&self) -> EffectivePolicy
fn clone(&self) -> EffectivePolicy
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 EffectivePolicy
impl Debug for EffectivePolicy
Source§impl<'de> Deserialize<'de> for EffectivePolicy
impl<'de> Deserialize<'de> for EffectivePolicy
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 EffectivePolicy
impl PartialEq for EffectivePolicy
Source§impl Serialize for EffectivePolicy
impl Serialize for EffectivePolicy
impl Eq for EffectivePolicy
impl StructuralPartialEq for EffectivePolicy
Auto Trait Implementations§
impl Freeze for EffectivePolicy
impl RefUnwindSafe for EffectivePolicy
impl Send for EffectivePolicy
impl Sync for EffectivePolicy
impl Unpin for EffectivePolicy
impl UnsafeUnpin for EffectivePolicy
impl UnwindSafe for EffectivePolicy
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