pub struct PolicyEngine;Expand description
Evaluates consent policies against active consents.
Implementations§
Source§impl PolicyEngine
impl PolicyEngine
pub fn new() -> Self
Sourcepub fn evaluate(
&self,
policy: &ConsentPolicy,
consents: &[ActiveConsent],
action: &ActionRequest,
now: &Timestamp,
) -> ConsentDecision
pub fn evaluate( &self, policy: &ConsentPolicy, consents: &[ActiveConsent], action: &ActionRequest, now: &Timestamp, ) -> ConsentDecision
Evaluate a policy against current consents.
Trait Implementations§
Source§impl Debug for PolicyEngine
impl Debug for PolicyEngine
Source§impl Default for PolicyEngine
impl Default for PolicyEngine
Source§fn default() -> PolicyEngine
fn default() -> PolicyEngine
Returns the “default value” for a type. Read more
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