pub struct ReductionAttribution {
pub full_bytes: u64,
pub view_bytes: u64,
pub full_tokens: u64,
pub view_tokens: u64,
pub aggregate_saved_bytes: u64,
pub aggregate_saved_tokens: u64,
pub standalone_saved_bytes: u64,
pub standalone_saved_tokens: u64,
pub overlap_suppressed_bytes: u64,
pub overlap_suppressed_tokens: u64,
pub passes: Vec<ReductionPassAttribution>,
}Expand description
Durable aggregate for ReductionPassAttribution. Byte and token
aggregates are marginal sums, never sums of overlapping standalone
claims.
Fields§
§full_bytes: u64Serialized bytes before reduction.
view_bytes: u64Serialized bytes after all persisted reductions.
full_tokens: u64Estimated tokens before reduction.
view_tokens: u64Estimated tokens after all persisted reductions.
aggregate_saved_bytes: u64Actual aggregate byte savings.
aggregate_saved_tokens: u64Actual aggregate estimated-token savings.
standalone_saved_bytes: u64Sum of byte savings claimed by passes in isolation.
standalone_saved_tokens: u64Sum of estimated-token savings claimed by passes in isolation.
overlap_suppressed_bytes: u64Standalone byte claims excluded from the aggregate.
overlap_suppressed_tokens: u64Standalone estimated-token claims excluded from the aggregate.
passes: Vec<ReductionPassAttribution>One row per pass in production pipeline order.
Trait Implementations§
Source§impl Clone for ReductionAttribution
impl Clone for ReductionAttribution
Source§fn clone(&self) -> ReductionAttribution
fn clone(&self) -> ReductionAttribution
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 ReductionAttribution
impl Debug for ReductionAttribution
Source§impl Default for ReductionAttribution
impl Default for ReductionAttribution
Source§fn default() -> ReductionAttribution
fn default() -> ReductionAttribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReductionAttribution
impl<'de> Deserialize<'de> for ReductionAttribution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReductionAttribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReductionAttribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReductionAttribution
Source§impl PartialEq for ReductionAttribution
impl PartialEq for ReductionAttribution
Source§impl Serialize for ReductionAttribution
impl Serialize for ReductionAttribution
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
impl StructuralPartialEq for ReductionAttribution
Auto Trait Implementations§
impl Freeze for ReductionAttribution
impl RefUnwindSafe for ReductionAttribution
impl Send for ReductionAttribution
impl Sync for ReductionAttribution
impl Unpin for ReductionAttribution
impl UnsafeUnpin for ReductionAttribution
impl UnwindSafe for ReductionAttribution
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
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
Compare self to
key and return true if they are equal.