Enum elasticsearch_dsl::search::queries::params::GeoBoundingBox
source · [−]pub enum GeoBoundingBox {
MainDiagonal {
top_left: GeoLocation,
bottom_right: GeoLocation,
},
SubDiagonal {
top_right: GeoLocation,
bottom_left: GeoLocation,
},
WellKnownText {
wkt: String,
},
Vertices {
top: f32,
left: f32,
bottom: f32,
right: f32,
},
}
Expand description
Different representations of geo bounding box
Variants
MainDiagonal
Fields
top_left: GeoLocation
The coordinates of the upper left vertex
bottom_right: GeoLocation
The coordinates of the lower right vertex
MainDiagonal vertices of geo bounding box
SubDiagonal
Fields
top_right: GeoLocation
The coordinates of the upper right vertex
bottom_left: GeoLocation
The coordinates of the lower left vertex
SubDiagonal vertices of geo bounding box
WellKnownText
Fields
wkt: String
e.g. BBOX (-74.1, -71.12, 40.73, 40.01)
Well-Known Text (WKT).
Vertices
Fields
top: f32
Set top separately
left: f32
Set left separately
bottom: f32
Set bottom separately
right: f32
Set right separately
The vertices of the bounding box can either be set by top_left
and bottom_right
or by
top_right
and bottom_left
parameters. More over the names topLeft
, bottomRight
, topRight
and bottomLeft
are supported. Instead of setting the values pairwise, one can use the simple
names top
, left
, bottom
and right
to set the values separately.
Trait Implementations
sourceimpl Clone for GeoBoundingBox
impl Clone for GeoBoundingBox
sourcefn clone(&self) -> GeoBoundingBox
fn clone(&self) -> GeoBoundingBox
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GeoBoundingBox
impl Debug for GeoBoundingBox
sourceimpl PartialEq<GeoBoundingBox> for GeoBoundingBox
impl PartialEq<GeoBoundingBox> for GeoBoundingBox
sourcefn eq(&self, other: &GeoBoundingBox) -> bool
fn eq(&self, other: &GeoBoundingBox) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GeoBoundingBox) -> bool
fn ne(&self, other: &GeoBoundingBox) -> bool
This method tests for !=
.
sourceimpl Serialize for GeoBoundingBox
impl Serialize for GeoBoundingBox
impl StructuralPartialEq for GeoBoundingBox
Auto Trait Implementations
impl RefUnwindSafe for GeoBoundingBox
impl Send for GeoBoundingBox
impl Sync for GeoBoundingBox
impl Unpin for GeoBoundingBox
impl UnwindSafe for GeoBoundingBox
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