pub struct PriceDef {
pub model: String,
pub input_per_mtok: f64,
pub output_per_mtok: f64,
}Expand description
A per-deployment price override for one model (provider/model), USD per 1M tokens.
Fields§
§model: StringThe ladder id this price applies to, e.g. "anthropic/claude-haiku-4-5".
input_per_mtok: f64USD per 1M input (prompt) tokens.
output_per_mtok: f64USD per 1M output (completion) tokens.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PriceDef
impl<'de> Deserialize<'de> for PriceDef
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
Auto Trait Implementations§
impl Freeze for PriceDef
impl RefUnwindSafe for PriceDef
impl Send for PriceDef
impl Sync for PriceDef
impl Unpin for PriceDef
impl UnsafeUnpin for PriceDef
impl UnwindSafe for PriceDef
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