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

pub struct GeoDistance {
    // some fields omitted
}

Representing sort options for sort by geodistance

Methods

impl GeoDistance

fn new<S>(field: S) -> GeoDistance where S: Into<String>

fn with_location<L: Into<Location>>(self, location: L) -> Self

fn with_locations<L: Into<Location>>(self, location: Vec<L>) -> Self

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

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

fn with_mode<T: Into<Mode>>(self, val: T) -> Self

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

fn build(self) -> SortBy

Trait Implementations

impl ToJson for GeoDistance

fn to_json(&self) -> Json