pub struct PolicyEngine { /* private fields */ }Expand description
Policy engine for evaluating policies
Implementations§
Source§impl PolicyEngine
impl PolicyEngine
Sourcepub fn add_policy(&mut self, policy: Policy)
pub fn add_policy(&mut self, policy: Policy)
Add a policy to engine
Sourcepub fn evaluate(
&self,
manifest: &Manifest,
_context: &PolicyContext,
) -> PolicyEvaluationResult
pub fn evaluate( &self, manifest: &Manifest, _context: &PolicyContext, ) -> PolicyEvaluationResult
Evaluate all policies against manifest and context
Trait Implementations§
Source§impl Clone for PolicyEngine
impl Clone for PolicyEngine
Source§fn clone(&self) -> PolicyEngine
fn clone(&self) -> PolicyEngine
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 PolicyEngine
impl Debug for PolicyEngine
Auto Trait Implementations§
impl Freeze for PolicyEngine
impl RefUnwindSafe for PolicyEngine
impl Send for PolicyEngine
impl Sync for PolicyEngine
impl Unpin for PolicyEngine
impl UnsafeUnpin for PolicyEngine
impl UnwindSafe for PolicyEngine
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