pub struct LiveUsageMetadataBuilder(/* private fields */);Expand description
Builder for LiveUsageMetadata.
Implementations§
Source§impl LiveUsageMetadataBuilder
impl LiveUsageMetadataBuilder
pub fn prompt_token_count(self, value: impl Into<i64>) -> Self
pub fn cached_content_token_count(self, value: impl Into<i64>) -> Self
pub fn response_token_count(self, value: impl Into<i64>) -> Self
pub fn tool_use_prompt_token_count(self, value: impl Into<i64>) -> Self
pub fn thoughts_token_count(self, value: impl Into<i64>) -> Self
pub fn total_token_count(self, value: impl Into<i64>) -> Self
pub fn prompt_tokens_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn cache_tokens_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn response_tokens_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn tool_use_prompt_tokens_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn service_tier(self, value: impl Into<ServiceTier>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> LiveUsageMetadata
pub fn build(self) -> LiveUsageMetadata
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for LiveUsageMetadataBuilder
impl RefUnwindSafe for LiveUsageMetadataBuilder
impl Send for LiveUsageMetadataBuilder
impl Sync for LiveUsageMetadataBuilder
impl Unpin for LiveUsageMetadataBuilder
impl UnsafeUnpin for LiveUsageMetadataBuilder
impl UnwindSafe for LiveUsageMetadataBuilder
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