pub struct AssistantUsage {
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_creation_input_tokens: Option<u64>,
pub cache_read_input_tokens: Option<u64>,
pub server_tool_use: Option<ServerToolUse>,
pub service_tier: Option<Option<Value>>,
pub cache_creation: Option<CacheCreation>,
pub inference_geo: Option<Option<Value>>,
pub iterations: Option<Option<Value>>,
pub speed: Option<Option<Value>>,
}Fields§
§input_tokens: u64§output_tokens: u64§cache_creation_input_tokens: Option<u64>§cache_read_input_tokens: Option<u64>§server_tool_use: Option<ServerToolUse>§service_tier: Option<Option<Value>>null = explicitly set to null by API; absent = field not present.
cache_creation: Option<CacheCreation>§inference_geo: Option<Option<Value>>null = explicitly set to null by API; absent = field not present.
iterations: Option<Option<Value>>null = explicitly set to null by API; absent = field not present.
speed: Option<Option<Value>>null = explicitly set to null by API; absent = field not present.
Trait Implementations§
Source§impl Clone for AssistantUsage
impl Clone for AssistantUsage
Source§fn clone(&self) -> AssistantUsage
fn clone(&self) -> AssistantUsage
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 AssistantUsage
impl Debug for AssistantUsage
Source§impl<'de> Deserialize<'de> for AssistantUsage
impl<'de> Deserialize<'de> for AssistantUsage
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 AssistantUsage
impl RefUnwindSafe for AssistantUsage
impl Send for AssistantUsage
impl Sync for AssistantUsage
impl Unpin for AssistantUsage
impl UnsafeUnpin for AssistantUsage
impl UnwindSafe for AssistantUsage
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