#[non_exhaustive]pub struct ClientDataStoreConfig {
pub disabled: bool,
pub min_size_to_cache: usize,
pub max_size_to_cache: usize,
pub local_cache_size: usize,
pub warn_threshold: usize,
}Expand description
Configuration for the client data store subsystem.
Controls when serialized values are stored externally vs. returned inline, local LRU caching behavior, and size monitoring thresholds.
Mirrors pynenc’s ConfigClientDataStore.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.disabled: boolBypass entirely — always return inline serialized strings.
min_size_to_cache: usizeMinimum serialized string length (bytes) to store externally. Values shorter than this are returned inline.
max_size_to_cache: usizeMaximum serialized string length (bytes) to store externally. Values longer than this are returned inline with a warning. 0 = unlimited (no maximum).
local_cache_size: usizeMaximum number of entries in the process-local LRU cache.
warn_threshold: usizeLog a warning when any single value exceeds this size (bytes).
Trait Implementations§
Source§impl Clone for ClientDataStoreConfig
impl Clone for ClientDataStoreConfig
Source§fn clone(&self) -> ClientDataStoreConfig
fn clone(&self) -> ClientDataStoreConfig
Returns a duplicate 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 ClientDataStoreConfig
impl Debug for ClientDataStoreConfig
Source§impl Default for ClientDataStoreConfig
impl Default for ClientDataStoreConfig
Source§fn default() -> ClientDataStoreConfig
fn default() -> ClientDataStoreConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientDataStoreConfig
impl<'de> Deserialize<'de> for ClientDataStoreConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientDataStoreConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientDataStoreConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ClientDataStoreConfig
impl Serialize for ClientDataStoreConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ClientDataStoreConfig
impl RefUnwindSafe for ClientDataStoreConfig
impl Send for ClientDataStoreConfig
impl Sync for ClientDataStoreConfig
impl Unpin for ClientDataStoreConfig
impl UnsafeUnpin for ClientDataStoreConfig
impl UnwindSafe for ClientDataStoreConfig
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