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