pub struct LedgerRecord {
pub request_id: String,
pub timestamp: String,
pub surface: String,
pub format: String,
pub mode: String,
pub status: String,
pub original_tokens: usize,
pub compressed_tokens: usize,
pub saved_tokens: usize,
pub savings_pct: f64,
pub bypass_reason: Option<String>,
pub project_hash: Option<String>,
}Expand description
Matches interfaces.md §7.1’s redacted recent_requests[] item shape verbatim. This is
also the exact shape persisted (one per line, as JSON) by LedgerStore — there is no
separate “storage” representation, so no raw prompt/response/command-arg/path/header bytes
can ever end up on disk through this type.
Fields§
§request_id: String§timestamp: String§surface: String§format: String§mode: String§status: String§original_tokens: usize§compressed_tokens: usize§saved_tokens: usize§savings_pct: f64§bypass_reason: Option<String>§project_hash: Option<String>Trait Implementations§
Source§impl Clone for LedgerRecord
impl Clone for LedgerRecord
Source§fn clone(&self) -> LedgerRecord
fn clone(&self) -> LedgerRecord
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 LedgerRecord
impl Debug for LedgerRecord
Source§impl<'de> Deserialize<'de> for LedgerRecord
impl<'de> Deserialize<'de> for LedgerRecord
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 LedgerRecord
impl PartialEq for LedgerRecord
Source§impl Serialize for LedgerRecord
impl Serialize for LedgerRecord
impl StructuralPartialEq for LedgerRecord
Auto Trait Implementations§
impl Freeze for LedgerRecord
impl RefUnwindSafe for LedgerRecord
impl Send for LedgerRecord
impl Sync for LedgerRecord
impl Unpin for LedgerRecord
impl UnsafeUnpin for LedgerRecord
impl UnwindSafe for LedgerRecord
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