pub enum EmbeddingProvider {
OpenAI,
HuggingFace,
Cohere,
Local,
Mock,
}Expand description
嵌入模型提供商类型
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingProvider
impl Clone for EmbeddingProvider
Source§fn clone(&self) -> EmbeddingProvider
fn clone(&self) -> EmbeddingProvider
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 EmbeddingProvider
impl Debug for EmbeddingProvider
impl Eq for EmbeddingProvider
Source§impl PartialEq for EmbeddingProvider
impl PartialEq for EmbeddingProvider
Source§fn eq(&self, other: &EmbeddingProvider) -> bool
fn eq(&self, other: &EmbeddingProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbeddingProvider
Auto Trait Implementations§
impl Freeze for EmbeddingProvider
impl RefUnwindSafe for EmbeddingProvider
impl Send for EmbeddingProvider
impl Sync for EmbeddingProvider
impl Unpin for EmbeddingProvider
impl UnsafeUnpin for EmbeddingProvider
impl UnwindSafe for EmbeddingProvider
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.