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

pub struct Sort {
    // some fields omitted
}

A full sort clause

Methods

impl Sort

fn new(fields: Vec<SortBy>) -> Sort

fn field<S: Into<String>>(fieldname: S) -> Sort

Convenience function for a single field default

fn field_order<S: Into<String>>(fieldname: S, order: Order) -> Sort

fn fields<S: Into<String>>(fieldnames: Vec<S>) -> Sort

fn field_orders<S: Into<String>>(fields: Vec<(S, Order)>) -> Sort

Trait Implementations

impl ToJson for Sort

fn to_json(&self) -> Json