pub enum Distance {
Miles(u64),
Yards(u64),
Feet(u64),
Inches(u64),
Kilometers(u64),
Meters(u64),
Centimeter(u64),
Millimeters(u64),
NauticalMiles(u64),
}Expand description
Wherever distances need to be specified, such as the distance parameter
in the
Geo-distance
), the default unit is meters if none is specified.
Distances can be specified in other units,
such as "1km" or "2mi" (2 miles).
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html
Variants
Miles(u64)
Yards(u64)
Feet(u64)
Inches(u64)
Kilometers(u64)
Meters(u64)
Centimeter(u64)
Millimeters(u64)
NauticalMiles(u64)
Trait Implementations
impl Copy for Distance
impl StructuralPartialEq for Distance
Auto Trait Implementations
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more