[][src]Enum rs_es::query::functions::Function

pub enum Function {
    ScriptScore(ScriptScore),
    Weight(Weight),
    RandomScore(RandomScore),
    FieldValueFactor(FieldValueFactor),
    Linear(Decay),
    Exp(Decay),
    Gauss(Decay),
}

Function

Variants

ScriptScore(ScriptScore)Weight(Weight)RandomScore(RandomScore)FieldValueFactor(FieldValueFactor)Linear(Decay)Exp(Decay)Gauss(Decay)

Methods

impl Function[src]

pub fn build_script_score<A>(script: A) -> ScriptScore where
    A: Into<String>, 
[src]

impl Function[src]

pub fn build_weight<A>(weight: A) -> Weight where
    A: Into<f64>, 
[src]

impl Function[src]

pub fn build_random_score<A>(seed: A) -> RandomScore where
    A: Into<i64>, 
[src]

impl Function[src]

pub fn build_field_value_factor<A>(field: A) -> FieldValueFactor where
    A: Into<String>, 
[src]

impl Function[src]

pub fn build_decay<A, B, C>(field: A, origin: B, scale: C) -> Decay where
    A: Into<String>,
    B: Into<Origin>,
    C: Into<Scale>, 
[src]

Trait Implementations

impl Debug for Function[src]

impl Serialize for Function[src]

Auto Trait Implementations

impl Send for Function

impl Sync for Function

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err