pub struct GenerateContentResponseUsageMetadata {
pub cached_content_token_count: Option<i64>,
pub candidates_token_count: Option<i64>,
pub prompt_token_count: Option<i64>,
pub total_token_count: Option<i64>,
}Fields§
§cached_content_token_count: Option<i64>§candidates_token_count: Option<i64>§prompt_token_count: Option<i64>§total_token_count: Option<i64>Implementations§
Source§impl GenerateContentResponseUsageMetadata
impl GenerateContentResponseUsageMetadata
Sourcepub fn cached_content_token_count(self, value: impl Into<i64>) -> Self
pub fn cached_content_token_count(self, value: impl Into<i64>) -> Self
Sets the cached_content_token_count field of this struct.
Sourcepub fn candidates_token_count(self, value: impl Into<i64>) -> Self
pub fn candidates_token_count(self, value: impl Into<i64>) -> Self
Sets the candidates_token_count field of this struct.
Sourcepub fn prompt_token_count(self, value: impl Into<i64>) -> Self
pub fn prompt_token_count(self, value: impl Into<i64>) -> Self
Sets the prompt_token_count field of this struct.
Sourcepub fn total_token_count(self, value: impl Into<i64>) -> Self
pub fn total_token_count(self, value: impl Into<i64>) -> Self
Sets the total_token_count field of this struct.
Trait Implementations§
Source§impl Clone for GenerateContentResponseUsageMetadata
impl Clone for GenerateContentResponseUsageMetadata
Source§fn clone(&self) -> GenerateContentResponseUsageMetadata
fn clone(&self) -> GenerateContentResponseUsageMetadata
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 Default for GenerateContentResponseUsageMetadata
impl Default for GenerateContentResponseUsageMetadata
Source§fn default() -> GenerateContentResponseUsageMetadata
fn default() -> GenerateContentResponseUsageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerateContentResponseUsageMetadata
impl<'de> Deserialize<'de> for GenerateContentResponseUsageMetadata
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 GenerateContentResponseUsageMetadata
impl RefUnwindSafe for GenerateContentResponseUsageMetadata
impl Send for GenerateContentResponseUsageMetadata
impl Sync for GenerateContentResponseUsageMetadata
impl Unpin for GenerateContentResponseUsageMetadata
impl UnwindSafe for GenerateContentResponseUsageMetadata
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