pub struct DedupConfig {
pub lru_size: usize,
pub hint_verbosity: HintVerbosity,
pub near_ref_enabled: bool,
pub min_body_chars: usize,
pub enabled_per_endpoint: BTreeMap<String, bool>,
}Fields§
§lru_size: usizeLRU cache capacity per context_partition.
hint_verbosity: HintVerbosityVerbosity of emitted reference hints.
near_ref_enabled: boolEnable Type-2 near-reference hints (delta encoding). Default off.
min_body_chars: usizeSkip L0 for responses shorter than this many chars.
enabled_per_endpoint: BTreeMap<String, bool>Per-endpoint enable/disable. Absent entries → enabled.
Implementations§
Source§impl DedupConfig
impl DedupConfig
Sourcepub fn enabled_for(&self, endpoint: &str) -> bool
pub fn enabled_for(&self, endpoint: &str) -> bool
Is L0 dedup active for this endpoint? Defaults to true if unspecified.
Trait Implementations§
Source§impl Clone for DedupConfig
impl Clone for DedupConfig
Source§fn clone(&self) -> DedupConfig
fn clone(&self) -> DedupConfig
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 DedupConfig
impl Debug for DedupConfig
Source§impl Default for DedupConfig
impl Default for DedupConfig
Source§impl<'de> Deserialize<'de> for DedupConfig
impl<'de> Deserialize<'de> for DedupConfig
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
Auto Trait Implementations§
impl Freeze for DedupConfig
impl RefUnwindSafe for DedupConfig
impl Send for DedupConfig
impl Sync for DedupConfig
impl Unpin for DedupConfig
impl UnsafeUnpin for DedupConfig
impl UnwindSafe for DedupConfig
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