pub struct PartialCost {
pub input: Option<f64>,
pub output: Option<f64>,
pub cache_read: Option<f64>,
pub cache_write: Option<f64>,
pub tiers: Option<Vec<ModelCostTier>>,
}Expand description
Partial cost in a model override.
Fields§
§input: Option<f64>Input price.
output: Option<f64>Output price.
cache_read: Option<f64>Cache-read price.
cache_write: Option<f64>Cache-write price.
tiers: Option<Vec<ModelCostTier>>Pricing tiers (replace the base tiers).
Trait Implementations§
Source§impl Clone for PartialCost
impl Clone for PartialCost
Source§impl Debug for PartialCost
impl Debug for PartialCost
Source§impl Default for PartialCost
impl Default for PartialCost
Source§impl<'de> Deserialize<'de> for PartialCost
impl<'de> Deserialize<'de> for PartialCost
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
Source§impl PartialEq for PartialCost
impl PartialEq for PartialCost
impl StructuralPartialEq for PartialCost
Auto Trait Implementations§
impl Freeze for PartialCost
impl RefUnwindSafe for PartialCost
impl Send for PartialCost
impl Sync for PartialCost
impl Unpin for PartialCost
impl UnsafeUnpin for PartialCost
impl UnwindSafe for PartialCost
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