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§
Source§impl Clone for EmbeddingProviderFactory
impl Clone for EmbeddingProviderFactory
Source§fn clone(&self) -> EmbeddingProviderFactory
fn clone(&self) -> EmbeddingProviderFactory
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 moreAuto 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