pub struct EmbedOptions {
pub values: Vec<String>,
pub headers: Headers,
pub provider_options: ProviderOptions,
pub cancellation: CancellationToken,
}Expand description
Options for a single embedding call.
Fields§
§values: Vec<String>Texts to embed.
headers: HeadersAdditional request headers.
provider_options: ProviderOptionsProvider-specific options keyed by provider name.
cancellation: CancellationTokenCancellation token.
Implementations§
Trait Implementations§
Source§impl Clone for EmbedOptions
impl Clone for EmbedOptions
Source§fn clone(&self) -> EmbedOptions
fn clone(&self) -> EmbedOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmbedOptions
impl Debug for EmbedOptions
Source§impl Default for EmbedOptions
impl Default for EmbedOptions
Source§fn default() -> EmbedOptions
fn default() -> EmbedOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmbedOptions
impl RefUnwindSafe for EmbedOptions
impl Send for EmbedOptions
impl Sync for EmbedOptions
impl Unpin for EmbedOptions
impl UnsafeUnpin for EmbedOptions
impl UnwindSafe for EmbedOptions
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