pub struct CompressionPolicy {Show 15 fields
pub target_tokens: Option<usize>,
pub reserve_output_tokens: usize,
pub mode: CompressionMode,
pub task_scope: TaskScope,
pub cache_boundary: Option<CacheBoundary>,
pub preserve_latest_user_message: bool,
pub disabled: Vec<String>,
pub unsafe_disable_redaction: bool,
pub experimental: bool,
pub enable: Vec<String>,
pub store_originals: bool,
pub retrieval_namespace: String,
pub retrieval_ttl_seconds: Option<u64>,
pub retrieval_backend: String,
pub retrieval_store_path: Option<PathBuf>,
}Fields§
§target_tokens: Option<usize>§reserve_output_tokens: usize§mode: CompressionMode§task_scope: TaskScope§cache_boundary: Option<CacheBoundary>§preserve_latest_user_message: bool§disabled: Vec<String>§unsafe_disable_redaction: bool§experimental: boolCLI --experimental: enables transforms with ModeEntry.experimental == true
(currently diff_compaction; log_compaction was promoted out of --experimental
after the Phase 5 fidelity gate, see modes::ALL_ENTRIES) at their validated ratio band.
enable: Vec<String>CLI --enable <id>: force-enable a specific transform ID even though its mode-matrix
entry doesn’t enable it for the current mode. Still requires experimental for any
transform whose ModeEntry.experimental == true (see modes::pipeline_for).
store_originals: boolF-045: when true, and the full pre-transform input contains no secret-shaped content,
pipeline::compress_with_estimator persists it to the reversible evidence store
(retrieval_backend/retrieval_store_path) under its SHA-256 hash.
retrieval_namespace: StringF-045: the namespace stored-original entries are keyed under (see
retrieval_store::RetrievalStore::store).
retrieval_ttl_seconds: Option<u64>F-045: TTL passed to RetrievalStore::store for newly stored originals. None means
“use retrieval_store::DEFAULT_TTL_SECONDS” (this is a default, not “never expire” —
that per-entry meaning belongs to RetrievalStore::store’s own ttl_seconds parameter).
retrieval_backend: StringF-045: backend name passed to RetrievalStore::open (“memory” | “filesystem” |
“sqlite” — the latter fails clearly, handled as best-effort skip, see
pipeline::maybe_store_originals).
retrieval_store_path: Option<PathBuf>F-045: filesystem backend root override. None means
retrieval_store::default_store_path().
Implementations§
Source§impl CompressionPolicy
impl CompressionPolicy
pub fn builder() -> CompressionPolicyBuilder
Trait Implementations§
Source§impl Clone for CompressionPolicy
impl Clone for CompressionPolicy
Source§fn clone(&self) -> CompressionPolicy
fn clone(&self) -> CompressionPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompressionPolicy
impl Debug for CompressionPolicy
impl Eq for CompressionPolicy
Source§impl PartialEq for CompressionPolicy
impl PartialEq for CompressionPolicy
impl StructuralPartialEq for CompressionPolicy
Auto Trait Implementations§
impl Freeze for CompressionPolicy
impl RefUnwindSafe for CompressionPolicy
impl Send for CompressionPolicy
impl Sync for CompressionPolicy
impl Unpin for CompressionPolicy
impl UnsafeUnpin for CompressionPolicy
impl UnwindSafe for CompressionPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.