pub enum DocEmbedMethod {
Whole,
Pooled,
}Expand description
How a document vector was (or would be) computed (§2.4).
Variants§
Whole
The input was within budget and sent to the provider.
Pooled
Over budget: the token-weighted mean of the cached block vectors.
Implementations§
Trait Implementations§
Source§impl Clone for DocEmbedMethod
impl Clone for DocEmbedMethod
Source§fn clone(&self) -> DocEmbedMethod
fn clone(&self) -> DocEmbedMethod
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 moreimpl Copy for DocEmbedMethod
Source§impl Debug for DocEmbedMethod
impl Debug for DocEmbedMethod
impl Eq for DocEmbedMethod
Source§impl PartialEq for DocEmbedMethod
impl PartialEq for DocEmbedMethod
impl StructuralPartialEq for DocEmbedMethod
Auto Trait Implementations§
impl Freeze for DocEmbedMethod
impl RefUnwindSafe for DocEmbedMethod
impl Send for DocEmbedMethod
impl Sync for DocEmbedMethod
impl Unpin for DocEmbedMethod
impl UnsafeUnpin for DocEmbedMethod
impl UnwindSafe for DocEmbedMethod
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§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.