pub struct PricingInfo {
pub input_price_per_million: f64,
pub output_price_per_million: f64,
}Expand description
Pricing info needed for cost computation.
Prices are in USD per 1 million tokens.
Fields§
§input_price_per_million: f64§output_price_per_million: f64Trait Implementations§
Source§impl Clone for PricingInfo
impl Clone for PricingInfo
Source§fn clone(&self) -> PricingInfo
fn clone(&self) -> PricingInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PricingInfo
impl RefUnwindSafe for PricingInfo
impl Send for PricingInfo
impl Sync for PricingInfo
impl Unpin for PricingInfo
impl UnsafeUnpin for PricingInfo
impl UnwindSafe for PricingInfo
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