pub struct PricingConfig {
pub input_per_1m_tokens: f64,
pub output_per_1m_tokens: f64,
pub per_call: f64,
}Expand description
Pricing configuration for an endpoint.
Fields§
§input_per_1m_tokens: f64Cost per 1M input tokens (USD).
output_per_1m_tokens: f64Cost per 1M output tokens (USD).
per_call: f64Flat cost per call (USD), used for MCP/agent endpoints.
Trait Implementations§
Source§impl Clone for PricingConfig
impl Clone for PricingConfig
Source§fn clone(&self) -> PricingConfig
fn clone(&self) -> PricingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PricingConfig
impl Debug for PricingConfig
Source§impl Default for PricingConfig
impl Default for PricingConfig
Source§fn default() -> PricingConfig
fn default() -> PricingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PricingConfig
impl<'de> Deserialize<'de> for PricingConfig
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 PricingConfig
impl RefUnwindSafe for PricingConfig
impl Send for PricingConfig
impl Sync for PricingConfig
impl Unpin for PricingConfig
impl UnsafeUnpin for PricingConfig
impl UnwindSafe for PricingConfig
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