pub struct PricingConfig {
pub price_per_input_token: u64,
pub price_per_output_token: u64,
pub minimum_price: u64,
pub pricing_model: PricingModel,
}Expand description
Pricing configuration for models and providers
Fields§
§price_per_input_token: u64Price per input token (in smallest TNZO unit)
price_per_output_token: u64Price per output token (in smallest TNZO unit)
minimum_price: u64Minimum price per request (in smallest TNZO unit)
pricing_model: PricingModelPricing model
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§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
impl Eq for PricingConfig
Source§impl PartialEq for PricingConfig
impl PartialEq for PricingConfig
Source§fn eq(&self, other: &PricingConfig) -> bool
fn eq(&self, other: &PricingConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PricingConfig
impl Serialize for PricingConfig
impl StructuralPartialEq for PricingConfig
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