#[non_exhaustive]pub struct CumulativeCost {
pub usd: f64,
pub partial: bool,
}Expand description
Server-computed session cost member of CumulativeTokenUsage.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.usd: f64Estimated USD total, finite and non-negative.
partial: boolTrue when at least one leg lacked price data — clients render
(partial).
Trait Implementations§
Source§impl Clone for CumulativeCost
impl Clone for CumulativeCost
impl Copy for CumulativeCost
Source§impl Debug for CumulativeCost
impl Debug for CumulativeCost
Source§impl<'de> Deserialize<'de> for CumulativeCost
impl<'de> Deserialize<'de> for CumulativeCost
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 PartialEq for CumulativeCost
impl PartialEq for CumulativeCost
Source§impl Serialize for CumulativeCost
impl Serialize for CumulativeCost
impl StructuralPartialEq for CumulativeCost
Auto Trait Implementations§
impl Freeze for CumulativeCost
impl RefUnwindSafe for CumulativeCost
impl Send for CumulativeCost
impl Sync for CumulativeCost
impl Unpin for CumulativeCost
impl UnsafeUnpin for CumulativeCost
impl UnwindSafe for CumulativeCost
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