pub struct EmbeddingsBuilder<'a, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'a, S: State> EmbeddingsBuilder<'a, S>
impl<'a, S: State> EmbeddingsBuilder<'a, S>
Sourcepub fn build(self) -> Embeddings<'a>where
S: IsComplete,
pub fn build(self) -> Embeddings<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn input(self, value: &'a str) -> EmbeddingsBuilder<'a, SetInput<S>>where
S::Input: IsUnset,
pub fn input(self, value: &'a str) -> EmbeddingsBuilder<'a, SetInput<S>>where
S::Input: IsUnset,
Required.
Auto Trait Implementations§
impl<'a, S> Freeze for EmbeddingsBuilder<'a, S>
impl<'a, S> RefUnwindSafe for EmbeddingsBuilder<'a, S>
impl<'a, S> Send for EmbeddingsBuilder<'a, S>
impl<'a, S> Sync for EmbeddingsBuilder<'a, S>
impl<'a, S> Unpin for EmbeddingsBuilder<'a, S>
impl<'a, S> UnwindSafe for EmbeddingsBuilder<'a, S>
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