#[non_exhaustive]pub struct LiveUsageMetadata {
pub prompt_token_count: Option<i64>,
pub cached_content_token_count: Option<i64>,
pub response_token_count: Option<i64>,
pub tool_use_prompt_token_count: Option<i64>,
pub thoughts_token_count: Option<i64>,
pub total_token_count: Option<i64>,
pub prompt_tokens_details: Option<Vec<ModalityTokenCount>>,
pub cache_tokens_details: Option<Vec<ModalityTokenCount>>,
pub response_tokens_details: Option<Vec<ModalityTokenCount>>,
pub tool_use_prompt_tokens_details: Option<Vec<ModalityTokenCount>>,
pub service_tier: Option<ServiceTier>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prompt_token_count: Option<i64>§cached_content_token_count: Option<i64>§response_token_count: Option<i64>§tool_use_prompt_token_count: Option<i64>§thoughts_token_count: Option<i64>§total_token_count: Option<i64>§prompt_tokens_details: Option<Vec<ModalityTokenCount>>§cache_tokens_details: Option<Vec<ModalityTokenCount>>§response_tokens_details: Option<Vec<ModalityTokenCount>>§tool_use_prompt_tokens_details: Option<Vec<ModalityTokenCount>>§service_tier: Option<ServiceTier>§rest: RestImplementations§
Source§impl LiveUsageMetadata
impl LiveUsageMetadata
Sourcepub fn builder() -> LiveUsageMetadataBuilder
pub fn builder() -> LiveUsageMetadataBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for LiveUsageMetadata
impl Clone for LiveUsageMetadata
Source§impl Debug for LiveUsageMetadata
impl Debug for LiveUsageMetadata
Source§impl DeclaredFields for LiveUsageMetadata
impl DeclaredFields for LiveUsageMetadata
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for LiveUsageMetadata
impl<'de> Deserialize<'de> for LiveUsageMetadata
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
Source§impl PartialEq for LiveUsageMetadata
impl PartialEq for LiveUsageMetadata
Source§impl Serialize for LiveUsageMetadata
impl Serialize for LiveUsageMetadata
impl StructuralPartialEq for LiveUsageMetadata
Auto Trait Implementations§
impl Freeze for LiveUsageMetadata
impl RefUnwindSafe for LiveUsageMetadata
impl Send for LiveUsageMetadata
impl Sync for LiveUsageMetadata
impl Unpin for LiveUsageMetadata
impl UnsafeUnpin for LiveUsageMetadata
impl UnwindSafe for LiveUsageMetadata
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