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