pub struct ImageUsage {
pub input_tokens: u64,
pub output_tokens: u64,
pub total_tokens: u64,
pub input_details: ImageTokenDetails,
pub output_details: Option<ImageTokenDetails>,
}Expand description
Token usage returned by GPT Image.
Fields§
§input_tokens: u64Total input tokens.
output_tokens: u64Total output tokens.
total_tokens: u64Total input and output tokens.
input_details: ImageTokenDetailsInput text and image token breakdown.
output_details: Option<ImageTokenDetails>Output text and image token breakdown, when returned.
Trait Implementations§
Source§impl Clone for ImageUsage
impl Clone for ImageUsage
Source§fn clone(&self) -> ImageUsage
fn clone(&self) -> ImageUsage
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 ImageUsage
impl Debug for ImageUsage
impl Eq for ImageUsage
Source§impl PartialEq for ImageUsage
impl PartialEq for ImageUsage
impl StructuralPartialEq for ImageUsage
Auto Trait Implementations§
impl Freeze for ImageUsage
impl RefUnwindSafe for ImageUsage
impl Send for ImageUsage
impl Sync for ImageUsage
impl Unpin for ImageUsage
impl UnsafeUnpin for ImageUsage
impl UnwindSafe for ImageUsage
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