pub struct EmbeddingProviderFactory { /* private fields */ }Implementations§
Source§impl EmbeddingProviderFactory
impl EmbeddingProviderFactory
pub fn new(provider: Arc<dyn EmbeddingProvider>) -> Self
pub fn id(&self) -> EmbeddingProviderId
pub fn create(&self) -> Arc<dyn EmbeddingProvider> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EmbeddingProviderFactory
impl !UnwindSafe for EmbeddingProviderFactory
impl Freeze for EmbeddingProviderFactory
impl Send for EmbeddingProviderFactory
impl Sync for EmbeddingProviderFactory
impl Unpin for EmbeddingProviderFactory
impl UnsafeUnpin for EmbeddingProviderFactory
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