use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SpatialBoundsDeriveBounds {
#[serde(rename = "lowerLeftCoordinate")]
pub lower_left_coordinate: Box<models::Coordinate2D>,
#[serde(rename = "upperRightCoordinate")]
pub upper_right_coordinate: Box<models::Coordinate2D>,
#[serde(rename = "type")]
pub r#type: Type,
}
impl SpatialBoundsDeriveBounds {
pub fn new(lower_left_coordinate: models::Coordinate2D, upper_right_coordinate: models::Coordinate2D, r#type: Type) -> SpatialBoundsDeriveBounds {
SpatialBoundsDeriveBounds {
lower_left_coordinate: Box::new(lower_left_coordinate),
upper_right_coordinate: Box::new(upper_right_coordinate),
r#type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "bounds")]
Bounds,
}
impl Default for Type {
fn default() -> Type {
Self::Bounds
}
}