pub struct ApiUsage {
pub input_tokens: i64,
pub output_tokens: i64,
pub cache_read_input_tokens: Option<i64>,
pub cache_creation_input_tokens: Option<i64>,
pub server_tool_use: Option<ServerToolUse>,
pub service_tier: Option<&'static str>,
pub cache_creation: Option<CacheCreation>,
pub inference_geo: Option<&'static str>,
pub iterations: Option<Vec<Value>>,
pub speed: Option<&'static str>,
}Expand description
Usage statistics from API response
Fields§
§input_tokens: i64§output_tokens: i64§cache_read_input_tokens: Option<i64>§cache_creation_input_tokens: Option<i64>§server_tool_use: Option<ServerToolUse>§service_tier: Option<&'static str>§cache_creation: Option<CacheCreation>§inference_geo: Option<&'static str>§iterations: Option<Vec<Value>>§speed: Option<&'static str>Trait Implementations§
Source§impl Deserialize<'static> for ApiUsage
impl Deserialize<'static> for ApiUsage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ApiUsage
impl RefUnwindSafe for ApiUsage
impl Send for ApiUsage
impl Sync for ApiUsage
impl Unpin for ApiUsage
impl UnsafeUnpin for ApiUsage
impl UnwindSafe for ApiUsage
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