pub struct UsageLogEntry {
pub ts: Option<String>,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_read_tokens: u64,
pub cache_creation_tokens: u64,
pub cost_usd: f64,
}Fields§
§ts: Option<String>§input_tokens: u64§output_tokens: u64§cache_read_tokens: u64§cache_creation_tokens: u64§cost_usd: f64Trait Implementations§
Source§impl Clone for UsageLogEntry
impl Clone for UsageLogEntry
Source§fn clone(&self) -> UsageLogEntry
fn clone(&self) -> UsageLogEntry
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 UsageLogEntry
impl Debug for UsageLogEntry
Source§impl<'de> Deserialize<'de> for UsageLogEntry
impl<'de> Deserialize<'de> for UsageLogEntry
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 UsageLogEntry
impl RefUnwindSafe for UsageLogEntry
impl Send for UsageLogEntry
impl Sync for UsageLogEntry
impl Unpin for UsageLogEntry
impl UnsafeUnpin for UsageLogEntry
impl UnwindSafe for UsageLogEntry
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