pub struct Policy {
pub id: String,
pub description: String,
pub pattern: Pattern,
pub rule: Rule,
}Expand description
A single policy: pattern + rule + metadata.
Fields§
§id: StringShort machine identifier (e.g., “pci-3.4-sensitive”).
description: StringHuman-readable description.
pattern: PatternWhat subtrees this policy applies to.
rule: RuleWhat must hold where the pattern matches.
Trait Implementations§
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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