pub struct CostEvent {
pub model_role: ModelRole,
pub model_name: String,
pub input_tokens: u64,
pub output_tokens: u64,
pub cost: f64,
pub timestamp: DateTime<Utc>,
}Expand description
A single recorded cost event.
Fields§
§model_role: ModelRole§model_name: String§input_tokens: u64§output_tokens: u64§cost: f64§timestamp: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CostEvent
impl<'de> Deserialize<'de> for CostEvent
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
Auto Trait Implementations§
impl Freeze for CostEvent
impl RefUnwindSafe for CostEvent
impl Send for CostEvent
impl Sync for CostEvent
impl Unpin for CostEvent
impl UnsafeUnpin for CostEvent
impl UnwindSafe for CostEvent
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