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
sourceimpl Clone for PolicyCachingConfig
impl Clone for PolicyCachingConfig
sourcefn clone(&self) -> PolicyCachingConfig
fn clone(&self) -> PolicyCachingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PolicyCachingConfig
impl Debug for PolicyCachingConfig
sourceimpl Default for PolicyCachingConfig
impl Default for PolicyCachingConfig
sourceimpl<'de> Deserialize<'de> for PolicyCachingConfig
impl<'de> Deserialize<'de> for PolicyCachingConfig
sourcefn 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
sourceimpl Hash for PolicyCachingConfig
impl Hash for PolicyCachingConfig
sourceimpl PartialEq<PolicyCachingConfig> for PolicyCachingConfig
impl PartialEq<PolicyCachingConfig> for PolicyCachingConfig
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PolicyCachingConfig) -> bool
fn ne(&self, other: &PolicyCachingConfig) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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,
fn clear(&mut self)
fn clear(&mut self)
Completely overwrites this value.
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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,
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more