pub struct AuditRecord {
pub request_id: String,
pub timestamp: i64,
pub principal: String,
pub model: String,
pub provider: String,
pub prompt_tokens: Option<u32>,
pub completion_tokens: Option<u32>,
pub cache_hit_tokens: Option<u32>,
pub cost_micros: i64,
pub latency_ms: u64,
pub status: u16,
pub error: Option<String>,
}Fields§
§request_id: String§timestamp: i64§principal: String§model: String§provider: String§prompt_tokens: Option<u32>§completion_tokens: Option<u32>§cache_hit_tokens: Option<u32>§cost_micros: i64§latency_ms: u64§status: u16§error: Option<String>Trait Implementations§
Source§impl Clone for AuditRecord
impl Clone for AuditRecord
Source§fn clone(&self) -> AuditRecord
fn clone(&self) -> AuditRecord
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 AuditRecord
impl Debug for AuditRecord
Source§impl<'de> Deserialize<'de> for AuditRecord
impl<'de> Deserialize<'de> for AuditRecord
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 AuditRecord
impl RefUnwindSafe for AuditRecord
impl Send for AuditRecord
impl Sync for AuditRecord
impl Unpin for AuditRecord
impl UnsafeUnpin for AuditRecord
impl UnwindSafe for AuditRecord
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