1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* opensearch-client
*
* Rust Client for OpenSearch
*
* The version of the OpenAPI document: 3.1.0
* Contact: alberto.paro@gmail.com
* Generated by Paro OpenAPI Generator
*/
use crate::common;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TopRightBottomLeftGeoBounds { /// A latitude/longitude as a two-dimensional point. It can be represented in the following ways:
/// - As a `{lat, long}` object.
/// - As a geohash value.
/// - As a `[lon, lat]` array.
/// - As a string in `"<lat>, <lon>"` or WKT point format.
#[serde(rename = "top_right")]
pub top_right: common::GeoLocation, /// A latitude/longitude as a two-dimensional point. It can be represented in the following ways:
/// - As a `{lat, long}` object.
/// - As a geohash value.
/// - As a `[lon, lat]` array.
/// - As a string in `"<lat>, <lon>"` or WKT point format.
#[serde(rename = "bottom_left")]
pub bottom_left: common::GeoLocation,
}
impl TopRightBottomLeftGeoBounds {
pub fn new(top_right: common::GeoLocation, bottom_left: common::GeoLocation) -> TopRightBottomLeftGeoBounds {
TopRightBottomLeftGeoBounds {
top_right,
bottom_left,
}
}
}