pub struct HuggingFaceEmbeddingsConfig {
pub model: String,
pub api_key: Option<String>,
pub base_url: String,
pub wait_for_model: bool,
}Fields§
§model: String§api_key: Option<String>§base_url: String§wait_for_model: boolImplementations§
Source§impl HuggingFaceEmbeddingsConfig
impl HuggingFaceEmbeddingsConfig
pub fn new(model: impl Into<String>) -> Self
pub fn with_api_key(self, api_key: impl Into<String>) -> Self
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
pub fn with_wait_for_model(self, wait: bool) -> Self
Trait Implementations§
Source§impl Clone for HuggingFaceEmbeddingsConfig
impl Clone for HuggingFaceEmbeddingsConfig
Source§fn clone(&self) -> HuggingFaceEmbeddingsConfig
fn clone(&self) -> HuggingFaceEmbeddingsConfig
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 moreAuto Trait Implementations§
impl Freeze for HuggingFaceEmbeddingsConfig
impl RefUnwindSafe for HuggingFaceEmbeddingsConfig
impl Send for HuggingFaceEmbeddingsConfig
impl Sync for HuggingFaceEmbeddingsConfig
impl Unpin for HuggingFaceEmbeddingsConfig
impl UnsafeUnpin for HuggingFaceEmbeddingsConfig
impl UnwindSafe for HuggingFaceEmbeddingsConfig
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