pub struct AuditEntry {
pub timestamp: DateTime<Utc>,
pub tool: String,
pub layer: Layer,
pub tokens_used: u64,
pub tokens_saved: u64,
pub cache_hit: bool,
pub intent: ExtractionIntent,
pub source_size: u64,
pub result_size: u64,
}Expand description
A single audit entry recording one query’s token usage.
Fields§
§timestamp: DateTime<Utc>When this query was made.
tool: StringThe tool/endpoint that was called.
layer: LayerWhich layer served the response.
tokens_used: u64Tokens actually used.
tokens_saved: u64Tokens saved compared to a full retrieval.
cache_hit: boolWhether the cache was hit.
intent: ExtractionIntentThe extraction intent used.
source_size: u64Size of the source data (items or bytes).
result_size: u64Size of the result data.
Implementations§
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 AuditEntry
impl Debug for AuditEntry
Source§impl<'de> Deserialize<'de> for AuditEntry
impl<'de> Deserialize<'de> for AuditEntry
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 AuditEntry
impl RefUnwindSafe for AuditEntry
impl Send for AuditEntry
impl Sync for AuditEntry
impl Unpin for AuditEntry
impl UnsafeUnpin for AuditEntry
impl UnwindSafe for AuditEntry
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