pub struct HeavyRequest {
pub session_id: String,
pub request_id: Option<String>,
pub model: Option<String>,
pub ts: Option<Timestamp>,
pub total_tokens: u64,
pub cost_usd: Option<f64>,
pub cost_share: Option<f64>,
pub token_share: f64,
pub sidechain: bool,
pub has_thinking: bool,
}Expand description
One deduplicated request flagged as a heavy contributor (a fat-tail member).
Fields§
§session_id: String§request_id: Option<String>§model: Option<String>§ts: Option<Timestamp>§total_tokens: u64Known tokens for this request (Usage::known_total).
cost_usd: Option<f64>USD cost when the model is priced, else None (§8.7 — never guessed).
Share of total priced cost (0.0..=1.0), or None when this request is
unpriced or total cost is zero.
Share of total tokens (0.0..=1.0).
sidechain: boolThe request came from a sub-agent (sidechain) transcript.
has_thinking: boolThis request used extended thinking (its output already includes the
thinking tokens — §8.2).
Trait Implementations§
Source§impl Clone for HeavyRequest
impl Clone for HeavyRequest
Source§fn clone(&self) -> HeavyRequest
fn clone(&self) -> HeavyRequest
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 HeavyRequest
impl Debug for HeavyRequest
Auto Trait Implementations§
impl Freeze for HeavyRequest
impl RefUnwindSafe for HeavyRequest
impl Send for HeavyRequest
impl Sync for HeavyRequest
impl Unpin for HeavyRequest
impl UnsafeUnpin for HeavyRequest
impl UnwindSafe for HeavyRequest
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