pub struct BreakdownRow {
pub key: String,
pub share_percent: Option<f64>,
}Expand description
One category’s part of a window’s consumption.
Fields§
§key: StringThe upstream’s own category key, verbatim: never mapped or renamed.
A String rather than an enum, because this is an observability wire: a
category added upstream must arrive as itself, not fail the record.
This category’s share of what the window has CONSUMED, 0..=100.
A share, not a used-percent. Across rows it sums to about 100 whatever
the window’s used_percent: a window 85% used whose consumption was all
one category reads 100 on that row, not 85. The part of used_percent a
category accounts for is used_percent * share_percent / 100.
Omitted, never zero, when the upstream’s row carries no figure.
Trait Implementations§
Source§impl Clone for BreakdownRow
impl Clone for BreakdownRow
Source§impl Debug for BreakdownRow
impl Debug for BreakdownRow
Source§impl<'de> Deserialize<'de> for BreakdownRow
impl<'de> Deserialize<'de> for BreakdownRow
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
Source§impl PartialEq for BreakdownRow
impl PartialEq for BreakdownRow
Source§impl Serialize for BreakdownRow
impl Serialize for BreakdownRow
impl StructuralPartialEq for BreakdownRow
Auto Trait Implementations§
impl Freeze for BreakdownRow
impl RefUnwindSafe for BreakdownRow
impl Send for BreakdownRow
impl Sync for BreakdownRow
impl Unpin for BreakdownRow
impl UnsafeUnpin for BreakdownRow
impl UnwindSafe for BreakdownRow
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