pub struct SessionCostRow {
pub session_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 session.
Fields§
§session_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 SessionCostRow
impl Clone for SessionCostRow
Source§fn clone(&self) -> SessionCostRow
fn clone(&self) -> SessionCostRow
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 SessionCostRow
impl Debug for SessionCostRow
Source§impl<'de> Deserialize<'de> for SessionCostRow
impl<'de> Deserialize<'de> for SessionCostRow
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 SessionCostRow
impl RefUnwindSafe for SessionCostRow
impl Send for SessionCostRow
impl Sync for SessionCostRow
impl Unpin for SessionCostRow
impl UnsafeUnpin for SessionCostRow
impl UnwindSafe for SessionCostRow
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