pub struct EmbedConfig {
pub backend: EmbedBackend,
pub model: Option<String>,
pub url: Option<String>,
}Fields§
§backend: EmbedBackend§model: Option<String>Model name — defaults depend on backend
url: Option<String>Base URL — for Ollama
Trait Implementations§
Source§impl Clone for EmbedConfig
impl Clone for EmbedConfig
Source§fn clone(&self) -> EmbedConfig
fn clone(&self) -> EmbedConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 EmbedConfig
impl Debug for EmbedConfig
Source§impl Default for EmbedConfig
impl Default for EmbedConfig
Source§fn default() -> EmbedConfig
fn default() -> EmbedConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmbedConfig
impl<'de> Deserialize<'de> for EmbedConfig
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 EmbedConfig
impl RefUnwindSafe for EmbedConfig
impl Send for EmbedConfig
impl Sync for EmbedConfig
impl Unpin for EmbedConfig
impl UnsafeUnpin for EmbedConfig
impl UnwindSafe for EmbedConfig
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