pub struct ConversationCostRow {
pub conversation_id: String,
pub request_count: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
pub cost: Option<f64>,
pub cost_source: Option<String>,
}Expand description
Aggregated cost/token row for a single conversation.
Fields§
§conversation_id: String§request_count: u64§input_tokens: u64§output_tokens: u64§total_tokens: u64§cost: Option<f64>§cost_source: Option<String>Trait Implementations§
Source§impl Clone for ConversationCostRow
impl Clone for ConversationCostRow
Source§fn clone(&self) -> ConversationCostRow
fn clone(&self) -> ConversationCostRow
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 ConversationCostRow
impl Debug for ConversationCostRow
Source§impl<'de> Deserialize<'de> for ConversationCostRow
impl<'de> Deserialize<'de> for ConversationCostRow
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 ConversationCostRow
impl RefUnwindSafe for ConversationCostRow
impl Send for ConversationCostRow
impl Sync for ConversationCostRow
impl Unpin for ConversationCostRow
impl UnsafeUnpin for ConversationCostRow
impl UnwindSafe for ConversationCostRow
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