[−][src]Struct rs_es::operations::search::GeoDistance
Representing sort options for sort by geodistance
Methods
impl GeoDistance
[src]
pub fn new<S>(field: S) -> GeoDistance where
S: Into<String>,
[src]
S: Into<String>,
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 RefUnwindSafe for GeoDistance
impl Send for GeoDistance
impl Sync for GeoDistance
impl Unpin for GeoDistance
impl UnwindSafe for GeoDistance
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,