pub struct ModelPricingConfig {
pub input_per_million: f64,
pub output_per_million: f64,
}Expand description
Pricing for a single model (per 1 million tokens).
Fields§
§input_per_million: f64Cost per 1 million input/prompt tokens in USD.
output_per_million: f64Cost per 1 million output/completion tokens in USD.
Trait Implementations§
Source§impl Clone for ModelPricingConfig
impl Clone for ModelPricingConfig
Source§fn clone(&self) -> ModelPricingConfig
fn clone(&self) -> ModelPricingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelPricingConfig
impl Debug for ModelPricingConfig
Source§impl<'de> Deserialize<'de> for ModelPricingConfig
impl<'de> Deserialize<'de> for ModelPricingConfig
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 ModelPricingConfig
impl RefUnwindSafe for ModelPricingConfig
impl Send for ModelPricingConfig
impl Sync for ModelPricingConfig
impl Unpin for ModelPricingConfig
impl UnsafeUnpin for ModelPricingConfig
impl UnwindSafe for ModelPricingConfig
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