Struct rs_es::operations::search::aggregations::GeoDistance [] [src]

pub struct GeoDistance<'a> {
    // some fields omitted
}

Methods

impl<'a> GeoDistance<'a>

fn new(field: &'a str, origin: &'a Location, ranges: &'a [GeoDistanceInst]) -> GeoDistance<'a>

fn with_unit<T: Into<DistanceUnit>>(self, val: T) -> Self

fn with_distance_type<T: Into<DistanceType>>(self, val: T) -> Self

fn inst() -> GeoDistanceInst

Trait Implementations

impl<'a> ToJson for GeoDistance<'a>

fn to_json(&self) -> Json

Derived Implementations

impl<'a> Debug for GeoDistance<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result