[−][src]Enum rs_es::query::functions::Function
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]
A: Into<String>,
impl Function
[src]
pub fn build_weight<A>(weight: A) -> Weight where
A: Into<f64>,
[src]
A: Into<f64>,
impl Function
[src]
pub fn build_random_score<A>(seed: A) -> RandomScore where
A: Into<i64>,
[src]
A: Into<i64>,
impl Function
[src]
pub fn build_field_value_factor<A>(field: A) -> FieldValueFactor where
A: Into<String>,
[src]
A: Into<String>,
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]
A: Into<String>,
B: Into<Origin>,
C: Into<Scale>,
pub fn build_decay_from_options<A: Into<String>>(
field: A,
options: DecayOptions
) -> Decay
[src]
field: A,
options: DecayOptions
) -> Decay
Trait Implementations
Auto Trait Implementations
impl Sync for Function
impl Send for Function
impl Unpin for Function
impl RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,