pub struct ImageGenInputUsageDetails {
pub text_tokens: i64,
pub image_tokens: i64,
}
Expand description
The input tokens detailed information for the image generation.
Fields§
§text_tokens: i64
The number of text tokens in the input prompt.
image_tokens: i64
The number of image tokens in the input prompt.
Implementations§
Trait Implementations§
Source§impl Clone for ImageGenInputUsageDetails
impl Clone for ImageGenInputUsageDetails
Source§fn clone(&self) -> ImageGenInputUsageDetails
fn clone(&self) -> ImageGenInputUsageDetails
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 ImageGenInputUsageDetails
impl Debug for ImageGenInputUsageDetails
Source§impl<'de> Deserialize<'de> for ImageGenInputUsageDetails
impl<'de> Deserialize<'de> for ImageGenInputUsageDetails
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
impl Copy for ImageGenInputUsageDetails
impl StructuralPartialEq for ImageGenInputUsageDetails
Auto Trait Implementations§
impl Freeze for ImageGenInputUsageDetails
impl RefUnwindSafe for ImageGenInputUsageDetails
impl Send for ImageGenInputUsageDetails
impl Sync for ImageGenInputUsageDetails
impl Unpin for ImageGenInputUsageDetails
impl UnwindSafe for ImageGenInputUsageDetails
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