pub struct ReductionPassAttribution {Show 16 fields
pub kind: String,
pub enabled: bool,
pub candidate_count: usize,
pub candidate_original_bytes: u64,
pub applied_count: usize,
pub applied_original_bytes: u64,
pub suppressed_by_later_pass_count: usize,
pub suppressed_by_later_pass_bytes: u64,
pub standalone_saved_bytes: u64,
pub standalone_saved_tokens: u64,
pub marginal_saved_bytes: u64,
pub marginal_saved_tokens: u64,
pub suppressed_bytes: u64,
pub suppressed_tokens: u64,
pub retained_bytes: u64,
pub retained_tokens: u64,
}Expand description
Durable, content-free accounting for one reduction pass. This is proof
metadata only: inversion and projection depend exclusively on
ReductionLog::reductions. Keeping it with the log lets an offline
inspector distinguish a disabled pass, an enabled pass with no candidate,
and a candidate later subsumed by a higher-order pass such as A10.
Fields§
§kind: StringStable stub-grammar pass name.
enabled: boolWhether the final configured policy enabled this pass.
candidate_count: usizeClaims produced immediately before later cardinality-changing passes.
candidate_original_bytes: u64Original bytes addressed by those claims.
applied_count: usizeClaims retained in the final persisted reduction index.
applied_original_bytes: u64Original bytes addressed by retained claims.
suppressed_by_later_pass_count: usizeEarlier claims subsumed by a later pass.
suppressed_by_later_pass_bytes: u64Original bytes addressed by those subsumed claims.
standalone_saved_bytes: u64Bytes this pass would save in isolation.
standalone_saved_tokens: u64Estimated tokens this pass would save in isolation.
marginal_saved_bytes: u64Bytes this pass adds after earlier persisted passes.
marginal_saved_tokens: u64Estimated tokens this pass adds after earlier persisted passes.
suppressed_bytes: u64Standalone byte claim removed by overlap or pass order.
suppressed_tokens: u64Standalone token claim removed by overlap or pass order.
retained_bytes: u64Projected bytes retained after this pass in pipeline order.
retained_tokens: u64Estimated tokens retained after this pass in pipeline order.
Trait Implementations§
Source§impl Clone for ReductionPassAttribution
impl Clone for ReductionPassAttribution
Source§fn clone(&self) -> ReductionPassAttribution
fn clone(&self) -> ReductionPassAttribution
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 ReductionPassAttribution
impl Debug for ReductionPassAttribution
Source§impl Default for ReductionPassAttribution
impl Default for ReductionPassAttribution
Source§fn default() -> ReductionPassAttribution
fn default() -> ReductionPassAttribution
Source§impl<'de> Deserialize<'de> for ReductionPassAttribution
impl<'de> Deserialize<'de> for ReductionPassAttribution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReductionPassAttribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReductionPassAttribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ReductionPassAttribution
Source§impl PartialEq for ReductionPassAttribution
impl PartialEq for ReductionPassAttribution
Source§impl Serialize for ReductionPassAttribution
impl Serialize for ReductionPassAttribution
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,
impl StructuralPartialEq for ReductionPassAttribution
Auto Trait Implementations§
impl Freeze for ReductionPassAttribution
impl RefUnwindSafe for ReductionPassAttribution
impl Send for ReductionPassAttribution
impl Sync for ReductionPassAttribution
impl Unpin for ReductionPassAttribution
impl UnsafeUnpin for ReductionPassAttribution
impl UnwindSafe for ReductionPassAttribution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.