pub struct UsageEntry {
pub id: String,
pub request_id: Option<String>,
pub model: Option<String>,
pub provider: Option<String>,
pub endpoint: Option<String>,
pub delta_ticks: Option<i64>,
pub balance_after: Option<i64>,
pub input_tokens: Option<i64>,
pub output_tokens: Option<i64>,
pub created_at: Option<String>,
}Expand description
A single usage entry from the ledger.
Fields§
§id: String§request_id: Option<String>§model: Option<String>§provider: Option<String>§endpoint: Option<String>§delta_ticks: Option<i64>§balance_after: Option<i64>§input_tokens: Option<i64>§output_tokens: Option<i64>§created_at: Option<String>Trait Implementations§
Source§impl Clone for UsageEntry
impl Clone for UsageEntry
Source§fn clone(&self) -> UsageEntry
fn clone(&self) -> UsageEntry
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 UsageEntry
impl Debug for UsageEntry
Source§impl<'de> Deserialize<'de> for UsageEntry
impl<'de> Deserialize<'de> for UsageEntry
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 UsageEntry
impl RefUnwindSafe for UsageEntry
impl Send for UsageEntry
impl Sync for UsageEntry
impl Unpin for UsageEntry
impl UnsafeUnpin for UsageEntry
impl UnwindSafe for UsageEntry
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