pub struct UsageInfo {
pub input_tokens: Option<i64>,
pub output_tokens: Option<i64>,
pub model: Option<String>,
pub cache_read_tokens: Option<i64>,
pub meta: Option<JsonObject>,
}Fields§
§input_tokens: Option<i64>Input tokens consumed
output_tokens: Option<i64>Output tokens generated
model: Option<String>Model used
cache_read_tokens: Option<i64>Tokens read from cache
meta: Option<JsonObject>Additional provider-specific metadata for this usage report. Clients MAY look for well-known optional keys here to provide enhanced UI.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsageInfo
impl<'de> Deserialize<'de> for UsageInfo
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
impl StructuralPartialEq for UsageInfo
Auto Trait Implementations§
impl Freeze for UsageInfo
impl RefUnwindSafe for UsageInfo
impl Send for UsageInfo
impl Sync for UsageInfo
impl Unpin for UsageInfo
impl UnsafeUnpin for UsageInfo
impl UnwindSafe for UsageInfo
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