pub enum RankingMetric {
RankingMetricUnknown,
RankingMetricL2Distance,
RankingMetricCosineSimilarity,
}Expand description
Deprecated: Metric now comes from collection creation.
Variants§
RankingMetricUnknown
Unknown ranking metric.
RankingMetricL2Distance
L2 distance metric.
RankingMetricCosineSimilarity
Cosine similarity metric.
Trait Implementations§
Source§impl Clone for RankingMetric
impl Clone for RankingMetric
Source§fn clone(&self) -> RankingMetric
fn clone(&self) -> RankingMetric
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 moreSource§impl Debug for RankingMetric
impl Debug for RankingMetric
Source§impl Default for RankingMetric
impl Default for RankingMetric
Source§fn default() -> RankingMetric
fn default() -> RankingMetric
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RankingMetric
impl<'de> Deserialize<'de> for RankingMetric
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RankingMetric
impl PartialEq for RankingMetric
Source§impl Serialize for RankingMetric
impl Serialize for RankingMetric
impl StructuralPartialEq for RankingMetric
Auto Trait Implementations§
impl Freeze for RankingMetric
impl RefUnwindSafe for RankingMetric
impl Send for RankingMetric
impl Sync for RankingMetric
impl Unpin for RankingMetric
impl UnwindSafe for RankingMetric
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