pub struct ModelCostBreakdown {
pub model: String,
pub prompt_tokens: usize,
pub completion_tokens: usize,
pub total_tokens: usize,
pub cost_usd: f64,
pub call_count: usize,
}Expand description
Cost breakdown by model
Fields§
§model: String§prompt_tokens: usize§completion_tokens: usize§total_tokens: usize§cost_usd: f64§call_count: usizeTrait Implementations§
Source§impl Clone for ModelCostBreakdown
impl Clone for ModelCostBreakdown
Source§fn clone(&self) -> ModelCostBreakdown
fn clone(&self) -> ModelCostBreakdown
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelCostBreakdown
impl RefUnwindSafe for ModelCostBreakdown
impl Send for ModelCostBreakdown
impl Sync for ModelCostBreakdown
impl Unpin for ModelCostBreakdown
impl UnsafeUnpin for ModelCostBreakdown
impl UnwindSafe for ModelCostBreakdown
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