pub struct CostEstimate {
pub total_usd: f64,
pub per_model: Vec<ModelCost>,
pub tokens: TokenBuckets,
pub unpriced_models: Vec<String>,
pub approximations: Vec<Approximation>,
pub pricing_as_of: String,
pub pricing_source: PricingSource,
}Fields§
§total_usd: f64§per_model: Vec<ModelCost>§tokens: TokenBuckets§unpriced_models: Vec<String>§approximations: Vec<Approximation>§pricing_as_of: String§pricing_source: PricingSourceTrait Implementations§
Source§impl Clone for CostEstimate
impl Clone for CostEstimate
Source§fn clone(&self) -> CostEstimate
fn clone(&self) -> CostEstimate
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 CostEstimate
impl Debug for CostEstimate
Source§impl PartialEq for CostEstimate
impl PartialEq for CostEstimate
Source§fn eq(&self, other: &CostEstimate) -> bool
fn eq(&self, other: &CostEstimate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CostEstimate
impl Serialize for CostEstimate
impl StructuralPartialEq for CostEstimate
Auto Trait Implementations§
impl Freeze for CostEstimate
impl RefUnwindSafe for CostEstimate
impl Send for CostEstimate
impl Sync for CostEstimate
impl Unpin for CostEstimate
impl UnsafeUnpin for CostEstimate
impl UnwindSafe for CostEstimate
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