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
Well-Known Text (WKT).
Vertices
Fields
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§
source§impl Clone for GeoBoundingBox
impl Clone for GeoBoundingBox
source§fn clone(&self) -> GeoBoundingBox
fn clone(&self) -> GeoBoundingBox
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GeoBoundingBox
impl Debug for GeoBoundingBox
source§impl PartialEq<GeoBoundingBox> for GeoBoundingBox
impl PartialEq<GeoBoundingBox> for GeoBoundingBox
source§fn 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 ==
.source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more