pub struct UsageCost {
pub input: f64,
pub output: f64,
pub cache_read: f64,
pub cache_write: f64,
pub total: Option<f64>,
}Expand description
Dollar cost breakdown inside Usage.
Fields§
§input: f64§output: f64§cache_read: f64§cache_write: f64§total: Option<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsageCost
impl<'de> Deserialize<'de> for UsageCost
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
impl StructuralPartialEq for UsageCost
Auto Trait Implementations§
impl Freeze for UsageCost
impl RefUnwindSafe for UsageCost
impl Send for UsageCost
impl Sync for UsageCost
impl Unpin for UsageCost
impl UnsafeUnpin for UsageCost
impl UnwindSafe for UsageCost
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