pub struct PricingInfo {
pub input_tokens: f64,
pub output_tokens: f64,
pub cached_input_tokens: Option<f64>,
}
Fields§
§input_tokens: f64
§output_tokens: f64
§cached_input_tokens: Option<f64>
Trait Implementations§
Source§impl Clone for PricingInfo
impl Clone for PricingInfo
Source§fn clone(&self) -> PricingInfo
fn clone(&self) -> PricingInfo
Returns a copy 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 moreSource§impl Debug for PricingInfo
impl Debug for PricingInfo
Source§impl<'de> Deserialize<'de> for PricingInfo
impl<'de> Deserialize<'de> for PricingInfo
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 Serialize for PricingInfo
impl Serialize for PricingInfo
impl Copy for PricingInfo
Auto Trait Implementations§
impl Freeze for PricingInfo
impl RefUnwindSafe for PricingInfo
impl Send for PricingInfo
impl Sync for PricingInfo
impl Unpin 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