Enum elasticsearch_dsl::search::queries::params::GeoBoundingBox
source · [−]pub enum GeoBoundingBox {
MainDiagonal {
top_left: GeoPoint,
bottom_right: GeoPoint,
},
SubDiagonal {
top_right: GeoPoint,
bottom_left: GeoPoint,
},
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: GeoPointThe coordinates of the upper left vertex
bottom_right: GeoPointThe coordinates of the lower right vertex
MainDiagonal vertices of geo bounding box
SubDiagonal
Fields
top_right: GeoPointThe coordinates of the upper right vertex
bottom_left: GeoPointThe coordinates of the lower left vertex
SubDiagonal vertices of geo bounding box
WellKnownText
Fields
wkt: Stringe.g. BBOX (-74.1, -71.12, 40.73, 40.01)
Well-Known Text (WKT).
Vertices
Fields
top: f32Set top separately
left: f32Set left separately
bottom: f32Set bottom separately
right: f32Set 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
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)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more