pub struct OllamaEmbeddingConfig {
pub model: String,
pub endpoint: String,
}Expand description
Ollama embedding provider configuration.
Fields§
§model: StringOllama model name.
endpoint: StringOllama API endpoint.
Trait Implementations§
Source§impl Clone for OllamaEmbeddingConfig
impl Clone for OllamaEmbeddingConfig
Source§fn clone(&self) -> OllamaEmbeddingConfig
fn clone(&self) -> OllamaEmbeddingConfig
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 OllamaEmbeddingConfig
impl Debug for OllamaEmbeddingConfig
Source§impl Default for OllamaEmbeddingConfig
impl Default for OllamaEmbeddingConfig
Source§impl<'de> Deserialize<'de> for OllamaEmbeddingConfig
impl<'de> Deserialize<'de> for OllamaEmbeddingConfig
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 OllamaEmbeddingConfig
impl RefUnwindSafe for OllamaEmbeddingConfig
impl Send for OllamaEmbeddingConfig
impl Sync for OllamaEmbeddingConfig
impl Unpin for OllamaEmbeddingConfig
impl UnsafeUnpin for OllamaEmbeddingConfig
impl UnwindSafe for OllamaEmbeddingConfig
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