pub struct MaxThresholdRule {
pub max: u32,
}Expand description
Enforce a maximum threshold.
Fields§
§max: u32Maximum allowed threshold.
Trait Implementations§
Source§impl Rule for MaxThresholdRule
impl Rule for MaxThresholdRule
Source§fn evaluate(
&self,
request: &SessionRequest,
_ctx: &PolicyContext,
) -> Result<(), PolicyDenial>
fn evaluate( &self, request: &SessionRequest, _ctx: &PolicyContext, ) -> Result<(), PolicyDenial>
Evaluate the rule. Returns
Ok(()) if allowed, Err(PolicyDenial) if denied.Auto Trait Implementations§
impl Freeze for MaxThresholdRule
impl RefUnwindSafe for MaxThresholdRule
impl Send for MaxThresholdRule
impl Sync for MaxThresholdRule
impl Unpin for MaxThresholdRule
impl UnsafeUnpin for MaxThresholdRule
impl UnwindSafe for MaxThresholdRule
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