pub enum TierPrice {
Token {
input_per_mtok: f64,
output_per_mtok: f64,
cache_write_per_mtok: Option<f64>,
cache_read_per_mtok: Option<f64>,
thinking_per_mtok: Option<f64>,
},
Unit {
per_unit: f64,
},
}Expand description
Per-unit price within a tier, discriminated by dimension type.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TierPrice
impl<'de> Deserialize<'de> for TierPrice
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 StructuralPartialEq for TierPrice
Auto Trait Implementations§
impl Freeze for TierPrice
impl RefUnwindSafe for TierPrice
impl Send for TierPrice
impl Sync for TierPrice
impl Unpin for TierPrice
impl UnsafeUnpin for TierPrice
impl UnwindSafe for TierPrice
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