pub struct ModelPrice {
pub input: f64,
pub output: f64,
pub cache_read: f64,
pub cache_write: f64,
pub cache_write_1h: Option<f64>,
pub tier_boundary: Option<u64>,
pub input_above: Option<f64>,
pub output_above: Option<f64>,
pub cache_read_above: Option<f64>,
pub cache_write_above: Option<f64>,
}Expand description
Per-million-USD rates for one model. Tier-above fields apply when a single
request’s input exceeds tier_boundary.
Fields§
§input: f64§output: f64§cache_read: f64§cache_write: f64§cache_write_1h: Option<f64>§tier_boundary: Option<u64>§input_above: Option<f64>§output_above: Option<f64>§cache_read_above: Option<f64>§cache_write_above: Option<f64>Trait Implementations§
Source§impl Clone for ModelPrice
impl Clone for ModelPrice
Source§fn clone(&self) -> ModelPrice
fn clone(&self) -> ModelPrice
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 ModelPrice
impl Debug for ModelPrice
Source§impl<'de> Deserialize<'de> for ModelPrice
impl<'de> Deserialize<'de> for ModelPrice
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 ModelPrice
impl PartialEq for ModelPrice
Source§fn eq(&self, other: &ModelPrice) -> bool
fn eq(&self, other: &ModelPrice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelPrice
impl Serialize for ModelPrice
impl StructuralPartialEq for ModelPrice
Auto Trait Implementations§
impl Freeze for ModelPrice
impl RefUnwindSafe for ModelPrice
impl Send for ModelPrice
impl Sync for ModelPrice
impl Unpin for ModelPrice
impl UnsafeUnpin for ModelPrice
impl UnwindSafe for ModelPrice
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