pub struct ConfigPolicy {
pub max_risk: RiskLevel,
pub context: PolicyContext,
pub rules: PolicySet,
}Fields§
§max_risk: RiskLevel§context: PolicyContext§rules: PolicySetImplementations§
Source§impl ConfigPolicy
impl ConfigPolicy
Sourcepub fn denied_payload(&self, result: &ModuleResult) -> String
pub fn denied_payload(&self, result: &ModuleResult) -> String
Returns the first denied payload pattern found in a module’s emitted evidence or structured data, or an empty string when none match. Enforced proactively via dry_run when supported; post-execution fallback otherwise.
pub fn has_deny_payload(&self) -> bool
Trait Implementations§
Source§impl Clone for ConfigPolicy
impl Clone for ConfigPolicy
Source§fn clone(&self) -> ConfigPolicy
fn clone(&self) -> ConfigPolicy
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 ConfigPolicy
impl Debug for ConfigPolicy
Source§impl PolicyEngine for ConfigPolicy
impl PolicyEngine for ConfigPolicy
fn evaluate(&self, req: &PolicyRequest) -> PolicyDecision
Auto Trait Implementations§
impl Freeze for ConfigPolicy
impl RefUnwindSafe for ConfigPolicy
impl Send for ConfigPolicy
impl Sync for ConfigPolicy
impl Unpin for ConfigPolicy
impl UnsafeUnpin for ConfigPolicy
impl UnwindSafe for ConfigPolicy
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