pub struct CompiledPolicy { /* private fields */ }Expand description
A compiled policy — validated, immutable, ready for repeated evaluation.
Stores the compiled expression plus metadata for audit/pinning.
Implementations§
Source§impl CompiledPolicy
impl CompiledPolicy
Sourcepub fn expr(&self) -> &CompiledExpr
pub fn expr(&self) -> &CompiledExpr
Returns the compiled expression.
Sourcepub fn source_hash(&self) -> &[u8; 32]
pub fn source_hash(&self) -> &[u8; 32]
Blake3 hash of the original Expr JSON used to compile this policy.
Included in decision evidence for audit pinning.
Trait Implementations§
Source§impl Clone for CompiledPolicy
impl Clone for CompiledPolicy
Source§fn clone(&self) -> CompiledPolicy
fn clone(&self) -> CompiledPolicy
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 CompiledPolicy
impl Debug for CompiledPolicy
Source§impl PartialEq for CompiledPolicy
impl PartialEq for CompiledPolicy
Auto Trait Implementations§
impl Freeze for CompiledPolicy
impl RefUnwindSafe for CompiledPolicy
impl Send for CompiledPolicy
impl Sync for CompiledPolicy
impl Unpin for CompiledPolicy
impl UnsafeUnpin for CompiledPolicy
impl UnwindSafe for CompiledPolicy
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