geoengine_api_client/models/
spatial_bounds_derive_bounds.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct SpatialBoundsDeriveBounds {
15 #[serde(rename = "lowerLeftCoordinate")]
16 pub lower_left_coordinate: Box<models::Coordinate2D>,
17 #[serde(rename = "upperRightCoordinate")]
18 pub upper_right_coordinate: Box<models::Coordinate2D>,
19 #[serde(rename = "type")]
20 pub r#type: Type,
21}
22
23impl SpatialBoundsDeriveBounds {
24 pub fn new(lower_left_coordinate: models::Coordinate2D, upper_right_coordinate: models::Coordinate2D, r#type: Type) -> SpatialBoundsDeriveBounds {
25 SpatialBoundsDeriveBounds {
26 lower_left_coordinate: Box::new(lower_left_coordinate),
27 upper_right_coordinate: Box::new(upper_right_coordinate),
28 r#type,
29 }
30 }
31}
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35 #[serde(rename = "bounds")]
36 Bounds,
37}
38
39impl Default for Type {
40 fn default() -> Type {
41 Self::Bounds
42 }
43}
44