pub struct CostReport {
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub total_cost_usd: f64,
pub model_costs: HashMap<String, ModelCost>,
pub timestamp: String,
}Expand description
成本报告
Fields§
§total_input_tokens: u64总输入 token 数
total_output_tokens: u64总输出 token 数
total_cost_usd: f64总成本(美元)
model_costs: HashMap<String, ModelCost>模型成本明细
timestamp: String报告时间
Trait Implementations§
Source§impl Clone for CostReport
impl Clone for CostReport
Source§fn clone(&self) -> CostReport
fn clone(&self) -> CostReport
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 CostReport
impl Debug for CostReport
Source§impl<'de> Deserialize<'de> for CostReport
impl<'de> Deserialize<'de> for CostReport
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
Auto Trait Implementations§
impl Freeze for CostReport
impl RefUnwindSafe for CostReport
impl Send for CostReport
impl Sync for CostReport
impl Unpin for CostReport
impl UnsafeUnpin for CostReport
impl UnwindSafe for CostReport
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