Struct rs_es::operations::search::Script [] [src]

pub struct Script {
    // some fields omitted
}

Representing options for sort by script

Methods

impl Script

fn new<S, ST>(script: S, script_type: ST) -> Script where S: Into<String>, ST: Into<String>

fn with_order<T: Into<Order>>(self, val: T) -> Self

fn add_param<K, V>(self, key: K, value: V) -> Self where K: Into<String>, V: Into<JsonVal>

fn build(self) -> SortBy

Trait Implementations

impl ToJson for Script

fn to_json(&self) -> Json