Struct rs_es::operations::search::aggregations::bucket::Order [] [src]

pub struct Order<'a>(_, _);

Used to define the ordering of buckets in a some bucketted aggregations


use rs_es::operations::search::aggregations::bucket::{Order, OrderKey};

let order1 = Order::asc(OrderKey::Count);
let order2 = Order::desc("field_name");

The first will produce a JSON fragment: {"_count": "asc"}; the second will produce a JSON fragment: {"field_name", "desc"}


impl<'a> Order<'a>

Create an Order ascending

Create an Order descending

Trait Implementations

impl<'a> Debug for Order<'a>

Formats the value using the given formatter.

impl<'a> Serialize for Order<'a>

Serializes this value into this serializer.