pub struct StaticRateTable {
pub currency: String,
pub input_token_micros_per_million: u64,
pub output_token_micros_per_million: u64,
pub tool_call_micros: u64,
}Expand description
Static provider-neutral rate table.
Token rates are expressed in micros of currency per million tokens.
Tool rates are expressed in micros of currency per tool call.
Fields§
§currency: StringCurrency code or accounting unit.
input_token_micros_per_million: u64Input-token rate per one million input tokens, in micros.
output_token_micros_per_million: u64Output-token rate per one million output tokens, in micros.
tool_call_micros: u64Tool-call rate per call, in micros.
Implementations§
Trait Implementations§
Source§impl Clone for StaticRateTable
impl Clone for StaticRateTable
Source§fn clone(&self) -> StaticRateTable
fn clone(&self) -> StaticRateTable
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 CostPolicy for StaticRateTable
impl CostPolicy for StaticRateTable
Source§fn estimate_cost(&self, usage: &UsageReport) -> CostReport
fn estimate_cost(&self, usage: &UsageReport) -> CostReport
Estimates cost from one usage report.
Source§impl Debug for StaticRateTable
impl Debug for StaticRateTable
Source§impl<'de> Deserialize<'de> for StaticRateTable
impl<'de> Deserialize<'de> for StaticRateTable
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 StaticRateTable
Source§impl PartialEq for StaticRateTable
impl PartialEq for StaticRateTable
Source§fn eq(&self, other: &StaticRateTable) -> bool
fn eq(&self, other: &StaticRateTable) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StaticRateTable
impl Serialize for StaticRateTable
impl StructuralPartialEq for StaticRateTable
Auto Trait Implementations§
impl Freeze for StaticRateTable
impl RefUnwindSafe for StaticRateTable
impl Send for StaticRateTable
impl Sync for StaticRateTable
impl Unpin for StaticRateTable
impl UnsafeUnpin for StaticRateTable
impl UnwindSafe for StaticRateTable
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