pub struct SubagentRollup {
pub jsonl_offset: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_write_tokens: u64,
pub cache_write_1h_tokens: u64,
pub last_usage_msg_id: Option<String>,
pub cost_usd: f64,
pub model: String,
pub cost_estimate_unverified: bool,
pub usage_metrics_available: bool,
}Fields§
§jsonl_offset: u64§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_write_tokens: u64§cache_write_1h_tokens: u64The 1-hour-TTL subset of cache_write_tokens, billed at 2x base input.
last_usage_msg_id: Option<String>The last turn counted, so a turn written as several JSONL lines is not
charged once per line. Same reason as ClaudeSession::last_usage_msg_id.
cost_usd: f64§model: String§cost_estimate_unverified: bool§usage_metrics_available: boolTrait Implementations§
Source§impl Clone for SubagentRollup
impl Clone for SubagentRollup
Source§impl Debug for SubagentRollup
impl Debug for SubagentRollup
Auto Trait Implementations§
impl Freeze for SubagentRollup
impl RefUnwindSafe for SubagentRollup
impl Send for SubagentRollup
impl Sync for SubagentRollup
impl Unpin for SubagentRollup
impl UnsafeUnpin for SubagentRollup
impl UnwindSafe for SubagentRollup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more