pub struct ImageAnalysisUsage {
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
pub cached_input_tokens: Option<u64>,
pub cache_write_input_tokens: Option<u64>,
pub reasoning_output_tokens: Option<u64>,
}Expand description
Documented Responses API token usage retained for image analysis.
Fields§
§input_tokens: u64Total input tokens.
output_tokens: u64Total output tokens.
total_tokens: u64Total input and output tokens.
cached_input_tokens: Option<u64>Cached input tokens, when reported.
cache_write_input_tokens: Option<u64>Cache-write input tokens, when reported.
reasoning_output_tokens: Option<u64>Reasoning output tokens, when reported.
Trait Implementations§
Source§impl Clone for ImageAnalysisUsage
impl Clone for ImageAnalysisUsage
Source§fn clone(&self) -> ImageAnalysisUsage
fn clone(&self) -> ImageAnalysisUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageAnalysisUsage
impl Debug for ImageAnalysisUsage
impl Eq for ImageAnalysisUsage
Source§impl PartialEq for ImageAnalysisUsage
impl PartialEq for ImageAnalysisUsage
impl StructuralPartialEq for ImageAnalysisUsage
Auto Trait Implementations§
impl Freeze for ImageAnalysisUsage
impl RefUnwindSafe for ImageAnalysisUsage
impl Send for ImageAnalysisUsage
impl Sync for ImageAnalysisUsage
impl Unpin for ImageAnalysisUsage
impl UnsafeUnpin for ImageAnalysisUsage
impl UnwindSafe for ImageAnalysisUsage
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