pub struct ModelPrice {
pub input: f64,
pub output: f64,
pub cache_read: f64,
pub cache_write: f64,
}Expand description
Per-million-token rates for one model.
Fields§
§input: f64USD per 1M input tokens.
output: f64USD per 1M output tokens.
cache_read: f64USD per 1M cache-read tokens.
cache_write: f64USD per 1M cache-write tokens.
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 Default for ModelPrice
impl Default for ModelPrice
Source§fn default() -> ModelPrice
fn default() -> ModelPrice
Returns the “default value” for a type. 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 ==.impl Copy 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