pub struct DailyCostRow {
pub date: String,
pub project: String,
pub agent_role: String,
pub model: String,
pub tool: String,
pub tokens_actual: u64,
pub tokens_saved: u64,
pub cost_usd: f64,
pub savings_usd: f64,
}Expand description
One day × project × agent × model × tool aggregate from the ledger.
Fields§
§date: StringYYYY-MM-DD (UTC, from the event timestamp).
project: StringPrivacy-preserving project identifier (truncated repo hash — the ledger never stores paths). Map to readable names downstream.
agent_role: StringRecording agent identity (role attribution).
model: String§tool: String§tokens_actual: u64Tokens actually sent through lean-ctx (the billed reality).
tokens_saved: u64Verified tokens saved (bounce-adjusted).
cost_usd: f64Cost of the actual tokens at the event-pinned model price.
savings_usd: f64Verified savings valued at the same pinned price.
Trait Implementations§
Source§impl Clone for DailyCostRow
impl Clone for DailyCostRow
Source§fn clone(&self) -> DailyCostRow
fn clone(&self) -> DailyCostRow
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 DailyCostRow
impl Debug for DailyCostRow
Source§impl PartialEq for DailyCostRow
impl PartialEq for DailyCostRow
impl StructuralPartialEq for DailyCostRow
Auto Trait Implementations§
impl Freeze for DailyCostRow
impl RefUnwindSafe for DailyCostRow
impl Send for DailyCostRow
impl Sync for DailyCostRow
impl Unpin for DailyCostRow
impl UnsafeUnpin for DailyCostRow
impl UnwindSafe for DailyCostRow
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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