pub struct ModelPricing {
pub input: f64,
pub output: f64,
pub cache_write_1h: f64,
pub cache_write_5m: f64,
pub cache_read: f64,
}Expand description
Per-token USD pricing for one model, sourced from the LiteLLM table.
Cache-write splits by TTL tier to match the JSONL’s
cache_creation.ephemeral_{1h,5m} breakdown.
Fields§
§input: f64§output: f64§cache_write_1h: f64§cache_write_5m: f64§cache_read: f64Trait Implementations§
Source§impl Clone for ModelPricing
impl Clone for ModelPricing
Source§impl Debug for ModelPricing
impl Debug for ModelPricing
Source§impl<'de> Deserialize<'de> for ModelPricing
impl<'de> Deserialize<'de> for ModelPricing
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
Source§impl PartialEq for ModelPricing
impl PartialEq for ModelPricing
Source§impl Serialize for ModelPricing
impl Serialize for ModelPricing
impl StructuralPartialEq for ModelPricing
Auto Trait Implementations§
impl Freeze for ModelPricing
impl RefUnwindSafe for ModelPricing
impl Send for ModelPricing
impl Sync for ModelPricing
impl Unpin for ModelPricing
impl UnsafeUnpin for ModelPricing
impl UnwindSafe for ModelPricing
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