pub struct PermissionCacheOptions {
pub positive_ttl: Duration,
pub negative_ttl: Duration,
pub max_entries: usize,
}Expand description
Configuration for CachingPermissionEvaluator.
Fields§
§positive_ttl: DurationTTL for granted decisions. Default 30 s — shorter than token introspection (60 s) because authorization decisions can change faster than identity claims.
negative_ttl: DurationTTL for denied decisions. Default 5 s — allows quick recovery after permissions are granted.
max_entries: usizeMaximum number of cache entries before eviction kicks in.
Trait Implementations§
Source§impl Clone for PermissionCacheOptions
impl Clone for PermissionCacheOptions
Source§fn clone(&self) -> PermissionCacheOptions
fn clone(&self) -> PermissionCacheOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PermissionCacheOptions
impl Debug for PermissionCacheOptions
Auto Trait Implementations§
impl Freeze for PermissionCacheOptions
impl RefUnwindSafe for PermissionCacheOptions
impl Send for PermissionCacheOptions
impl Sync for PermissionCacheOptions
impl Unpin for PermissionCacheOptions
impl UnsafeUnpin for PermissionCacheOptions
impl UnwindSafe for PermissionCacheOptions
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