Struct ironoxide::config::PolicyCachingConfig
source · 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§
source§impl Clone for PolicyCachingConfig
impl Clone for PolicyCachingConfig
source§fn clone(&self) -> PolicyCachingConfig
fn clone(&self) -> PolicyCachingConfig
Returns a copy 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 PolicyCachingConfig
impl Debug for PolicyCachingConfig
source§impl Default for PolicyCachingConfig
impl Default for PolicyCachingConfig
source§impl<'de> Deserialize<'de> for PolicyCachingConfig
impl<'de> Deserialize<'de> for PolicyCachingConfig
source§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
source§impl Hash for PolicyCachingConfig
impl Hash for PolicyCachingConfig
source§impl PartialEq for PolicyCachingConfig
impl PartialEq for PolicyCachingConfig
source§fn eq(&self, other: &PolicyCachingConfig) -> bool
fn eq(&self, other: &PolicyCachingConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PolicyCachingConfig
impl Serialize for PolicyCachingConfig
impl Eq for PolicyCachingConfig
impl StructuralEq for PolicyCachingConfig
impl StructuralPartialEq for PolicyCachingConfig
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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere T: Default,
§unsafe fn initialize(place: *mut T)
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