pub struct CostBreakdown {
pub input: Money,
pub cached_input: Money,
pub text_output_and_thinking: Money,
pub image_output: Money,
pub grounding: Money,
pub total: Money,
pub accuracy: CostAccuracy,
pub pricing_version: String,
}Expand description
Locally calculated cost for one request or aggregate.
Fields§
§input: MoneyNon-cached input cost.
cached_input: MoneyCached input cost.
text_output_and_thinking: MoneyVisible text output plus thinking cost.
image_output: MoneyNative image output cost.
grounding: MoneyConservative Search grounding cost.
total: MoneySum of cost components.
accuracy: CostAccuracyCost calculation quality.
pricing_version: StringCompiled pricing-table identifier.
Trait Implementations§
Source§impl Clone for CostBreakdown
impl Clone for CostBreakdown
Source§fn clone(&self) -> CostBreakdown
fn clone(&self) -> CostBreakdown
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 CostBreakdown
impl Debug for CostBreakdown
Source§impl Default for CostBreakdown
impl Default for CostBreakdown
impl Eq for CostBreakdown
Source§impl PartialEq for CostBreakdown
impl PartialEq for CostBreakdown
impl StructuralPartialEq for CostBreakdown
Auto Trait Implementations§
impl Freeze for CostBreakdown
impl RefUnwindSafe for CostBreakdown
impl Send for CostBreakdown
impl Sync for CostBreakdown
impl Unpin for CostBreakdown
impl UnsafeUnpin for CostBreakdown
impl UnwindSafe for CostBreakdown
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