pub struct PiIngestStats {Show 14 fields
pub records_read: usize,
pub records_kept: usize,
pub tool_calls: usize,
pub tool_failures: usize,
pub user_prompts: usize,
pub bytes_read: u64,
pub from_offset: u64,
pub to_offset: u64,
pub model: String,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_creation_tokens: u64,
pub cost_usd: Option<f64>,
}Expand description
Ingestion statistics for a Pi session delta.
Fields§
§records_read: usize§records_kept: usize§tool_calls: usize§tool_failures: usize§user_prompts: usize§bytes_read: u64§from_offset: u64§to_offset: u64§model: String§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_creation_tokens: u64§cost_usd: Option<f64>Trait Implementations§
Source§impl Clone for PiIngestStats
impl Clone for PiIngestStats
Source§fn clone(&self) -> PiIngestStats
fn clone(&self) -> PiIngestStats
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 PiIngestStats
impl Debug for PiIngestStats
Source§impl Default for PiIngestStats
impl Default for PiIngestStats
Source§fn default() -> PiIngestStats
fn default() -> PiIngestStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PiIngestStats
impl<'de> Deserialize<'de> for PiIngestStats
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 PiIngestStats
impl PartialEq for PiIngestStats
Source§impl Serialize for PiIngestStats
impl Serialize for PiIngestStats
impl StructuralPartialEq for PiIngestStats
Auto Trait Implementations§
impl Freeze for PiIngestStats
impl RefUnwindSafe for PiIngestStats
impl Send for PiIngestStats
impl Sync for PiIngestStats
impl Unpin for PiIngestStats
impl UnsafeUnpin for PiIngestStats
impl UnwindSafe for PiIngestStats
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