pub struct CostEstimationConfig {
pub enabled: bool,
pub pricing_file: Option<String>,
pub custom_models: HashMap<String, ModelPricingConfig>,
}Expand description
Cost estimation configuration.
Fields§
§enabled: boolEnable cost estimation on traced requests.
pricing_file: Option<String>Optional path to an external pricing YAML/JSON file.
When set, the proxy loads model pricing from this file at startup (and reloads on SIGHUP). If the file is missing, built-in defaults are used as a fallback.
custom_models: HashMap<String, ModelPricingConfig>Custom model pricing overrides (model name → pricing).
Trait Implementations§
Source§impl Clone for CostEstimationConfig
impl Clone for CostEstimationConfig
Source§fn clone(&self) -> CostEstimationConfig
fn clone(&self) -> CostEstimationConfig
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 CostEstimationConfig
impl Debug for CostEstimationConfig
Source§impl Default for CostEstimationConfig
impl Default for CostEstimationConfig
Source§impl<'de> Deserialize<'de> for CostEstimationConfig
impl<'de> Deserialize<'de> for CostEstimationConfig
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 CostEstimationConfig
impl RefUnwindSafe for CostEstimationConfig
impl Send for CostEstimationConfig
impl Sync for CostEstimationConfig
impl Unpin for CostEstimationConfig
impl UnsafeUnpin for CostEstimationConfig
impl UnwindSafe for CostEstimationConfig
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