Struct elastic_types::geo::point::mapping::DefaultGeoPointMapping
[−]
[src]
pub struct DefaultGeoPointMapping<TFormat = DefaultGeoPointFormat> where
TFormat: GeoPointFormat, { /* fields omitted */ }
Default mapping for geo_point
.
Trait Implementations
impl<TFormat: PartialEq> PartialEq for DefaultGeoPointMapping<TFormat> where
TFormat: GeoPointFormat,
[src]
TFormat: GeoPointFormat,
fn eq(&self, __arg_0: &DefaultGeoPointMapping<TFormat>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DefaultGeoPointMapping<TFormat>) -> bool
[src]
This method tests for !=
.
impl<TFormat: Debug> Debug for DefaultGeoPointMapping<TFormat> where
TFormat: GeoPointFormat,
[src]
TFormat: GeoPointFormat,
impl<TFormat: Default> Default for DefaultGeoPointMapping<TFormat> where
TFormat: GeoPointFormat,
[src]
TFormat: GeoPointFormat,
fn default() -> DefaultGeoPointMapping<TFormat>
[src]
Returns the "default value" for a type. Read more
impl<TFormat: Clone> Clone for DefaultGeoPointMapping<TFormat> where
TFormat: GeoPointFormat,
[src]
TFormat: GeoPointFormat,
fn clone(&self) -> DefaultGeoPointMapping<TFormat>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<TFormat: Copy> Copy for DefaultGeoPointMapping<TFormat> where
TFormat: GeoPointFormat,
[src]
TFormat: GeoPointFormat,
impl<TFormat> GeoPointMapping for DefaultGeoPointMapping<TFormat> where
TFormat: GeoPointFormat,
[src]
TFormat: GeoPointFormat,
type Format = TFormat
The format used to serialise and deserialise the geo point. Read more
fn geohash() -> Option<bool>
[src]
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>
[src]
The maximum length of the geohash to use for the geohash and geohash_prefix
options.
fn geohash_prefix() -> Option<bool>
[src]
Should the geo-point
also be indexed as a geohash plus all its prefixes? Defaults to false
.
fn ignore_malformed() -> Option<bool>
[src]
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>
[src]
Should the geo-point
also be indexed as .lat
and .lon
sub-fields? Accepts true
and false
(default). Read more