pub struct Spend {
pub tokens: RecordedTokens,
pub cost_usd: f64,
pub priced: bool,
pub unpriced: bool,
}Expand description
Use summed, and what it cost at list rates where its models are priced.
Fields§
§tokens: RecordedTokensTokens of every kind.
cost_usd: f64List-rate cost of the priced part, in US dollars.
priced: boolWhether any of it was priced.
unpriced: boolWhether any of it was not: its model has no list price.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spend
impl RefUnwindSafe for Spend
impl Send for Spend
impl Sync for Spend
impl Unpin for Spend
impl UnsafeUnpin for Spend
impl UnwindSafe for Spend
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