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