pub struct ImageModelUsage {
pub input_tokens: Option<u32>,
pub output_tokens: Option<u32>,
pub total_tokens: Option<u32>,
}Expand description
Represents the token usage information for an image model call.
Fields§
§input_tokens: Option<u32>§output_tokens: Option<u32>§total_tokens: Option<u32>Trait Implementations§
Source§impl Clone for ImageModelUsage
impl Clone for ImageModelUsage
Source§fn clone(&self) -> ImageModelUsage
fn clone(&self) -> ImageModelUsage
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 moreAuto Trait Implementations§
impl Freeze for ImageModelUsage
impl RefUnwindSafe for ImageModelUsage
impl Send for ImageModelUsage
impl Sync for ImageModelUsage
impl Unpin for ImageModelUsage
impl UnsafeUnpin for ImageModelUsage
impl UnwindSafe for ImageModelUsage
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