pub struct EmbeddingUsageMetadataBuilder(/* private fields */);Expand description
Builder for EmbeddingUsageMetadata.
Implementations§
Source§impl EmbeddingUsageMetadataBuilder
impl EmbeddingUsageMetadataBuilder
pub fn prompt_token_count(self, value: impl Into<i64>) -> Self
pub fn prompt_token_details( self, value: impl Into<Vec<ModalityTokenCount>>, ) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> EmbeddingUsageMetadata
pub fn build(self) -> EmbeddingUsageMetadata
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for EmbeddingUsageMetadataBuilder
impl RefUnwindSafe for EmbeddingUsageMetadataBuilder
impl Send for EmbeddingUsageMetadataBuilder
impl Sync for EmbeddingUsageMetadataBuilder
impl Unpin for EmbeddingUsageMetadataBuilder
impl UnsafeUnpin for EmbeddingUsageMetadataBuilder
impl UnwindSafe for EmbeddingUsageMetadataBuilder
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