Struct elastic::types::prelude::DefaultGeoPointMapping
[−]
[src]
pub struct DefaultGeoPointMapping<F> where
F: GeoPointFormat, { /* fields omitted */ }
Default mapping for geo_point
.
Trait Implementations
impl<F> Default for DefaultGeoPointMapping<F> where
F: Default + GeoPointFormat,
[src]
F: Default + GeoPointFormat,
fn default() -> DefaultGeoPointMapping<F>
impl<F> Copy for DefaultGeoPointMapping<F> where
F: Copy + GeoPointFormat,
[src]
F: Copy + GeoPointFormat,
impl<F> Debug for DefaultGeoPointMapping<F> where
F: Debug + GeoPointFormat,
[src]
F: Debug + GeoPointFormat,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<F> GeoPointMapping for DefaultGeoPointMapping<F> where
F: GeoPointFormat,
[src]
F: GeoPointFormat,
type Format = F
The format used to serialise and deserialise the geo point. Read more
fn geohash() -> Option<bool>
Should the geo-point
also be indexed as a geohash in the .geohash
sub-field? Defaults to false
, unless geohash_prefix
is true
. Read more
fn geohash_precision() -> Option<Distance>
The maximum length of the geohash to use for the geohash and geohash_prefix
options.
fn geohash_prefix() -> Option<bool>
Should the geo-point
also be indexed as a geohash plus all its prefixes? Defaults to false
.
fn ignore_malformed() -> Option<bool>
If true
, malformed geo-points
are ignored. If false
(default), malformed geo-points
throw an exception and reject the whole document. Read more
fn lat_lon() -> Option<bool>
Should the geo-point
also be indexed as .lat
and .lon
sub-fields? Accepts true
and false
(default). Read more
impl<F> PartialEq<DefaultGeoPointMapping<F>> for DefaultGeoPointMapping<F> where
F: PartialEq<F> + GeoPointFormat,
[src]
F: PartialEq<F> + GeoPointFormat,
fn eq(&self, __arg_0: &DefaultGeoPointMapping<F>) -> bool
fn ne(&self, __arg_0: &DefaultGeoPointMapping<F>) -> bool
impl<F> Clone for DefaultGeoPointMapping<F> where
F: Clone + GeoPointFormat,
[src]
F: Clone + GeoPointFormat,