pub struct EmbedOptions {
pub values: Vec<String>,
pub headers: Option<Headers>,
pub provider_options: Option<ProviderOptions>,
}Expand description
Options for one EmbeddingModel::do_embed call.
Fields§
§values: Vec<String>Inputs to embed.
headers: Option<Headers>Extra HTTP headers (HTTP providers only).
provider_options: Option<ProviderOptions>Provider-specific options.
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
Source§impl<'de> Deserialize<'de> for EmbedOptions
impl<'de> Deserialize<'de> for EmbedOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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