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

pub struct GeoDistance { /* fields omitted */ }

Representing sort options for sort by geodistance

Methods

impl GeoDistance[src]

pub fn new<S>(field: S) -> GeoDistance where
    S: Into<String>, 
[src]

pub fn with_location<L: Into<Location>>(self, location: L) -> Self[src]

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

pub fn with_order<T: Into<Order>>(self, val: T) -> Self[src]

pub fn with_unit<T: Into<DistanceUnit>>(self, val: T) -> Self[src]

pub fn with_mode<T: Into<Mode>>(self, val: T) -> Self[src]

pub fn with_distance_type<T: Into<DistanceType>>(self, val: T) -> Self[src]

pub fn build(self) -> SortBy[src]

Trait Implementations

impl Debug for GeoDistance[src]

impl Serialize for GeoDistance[src]

Auto Trait Implementations

impl Send for GeoDistance

impl Sync for GeoDistance

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err