pub struct CostReport {
pub currency: String,
pub input_cost_micros: u64,
pub output_cost_micros: u64,
pub tool_cost_micros: u64,
pub total_cost_micros: u64,
pub limitations: Vec<String>,
}Expand description
Deterministic cost estimate from a usage report and cost policy.
Fields§
§currency: StringCurrency code or accounting unit.
input_cost_micros: u64Input token cost in micros.
output_cost_micros: u64Output token cost in micros.
tool_cost_micros: u64Tool call cost in micros.
total_cost_micros: u64Total estimated cost in micros.
limitations: Vec<String>Limitations found while estimating cost.
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
impl Eq for CostReport
Source§impl PartialEq for CostReport
impl PartialEq for CostReport
Source§fn eq(&self, other: &CostReport) -> bool
fn eq(&self, other: &CostReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CostReport
impl Serialize for CostReport
impl StructuralPartialEq for CostReport
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