Struct rs_es::operations::search::Sort
[−]
[src]
pub struct Sort { // some fields omitted }
A full sort clause
Methods
impl Sort
[src]
fn new(fields: Vec<SortBy>) -> Self
fn field<S: Into<String>>(fieldname: S) -> Self
Convenience function for a single field default
fn field_order<S: Into<String>>(fieldname: S, order: Order) -> Self
fn fields<S: Into<String>>(fieldnames: Vec<S>) -> Self
fn field_orders<S: Into<String>>(fields: Vec<(S, Order)>) -> Self
Trait Implementations
impl Serialize for Sort
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.