Struct ironoxide::config::PolicyCachingConfig [−][src]
pub struct PolicyCachingConfig { pub max_entries: usize, }
Expand description
Policy evaluation caching config
The lifetime of the cache is the lifetime of the IronOxide
struct.
Since policies are evaluated by the webservice, caching the result can greatly speed up encrypting a document with a PolicyGrant. There is no expiration of the cache, so if you want to clear it at runtime, call IronOxide::clear_policy_cache.
Fields
max_entries: usize
maximum number of policy evaluations that will be cached by the SDK. If the maximum number is exceeded, the cache will be cleared prior to storing the next entry
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PolicyCachingConfig
impl Send for PolicyCachingConfig
impl Sync for PolicyCachingConfig
impl Unpin for PolicyCachingConfig
impl UnwindSafe for PolicyCachingConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
pub fn clear(&mut self)
pub fn clear(&mut self)
Completely overwrites this value.
Compare self to key
and return true
if they are equal.
impl<T> InitializableFromZeroed for T where
T: Default,
impl<T> InitializableFromZeroed for T where
T: Default,
pub unsafe fn initialize(place: *mut T)
pub unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V