Skip to main content

geoengine_api_client/models/
st_rectangle.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct StRectangle {
15    #[serde(rename = "boundingBox")]
16    pub bounding_box: Box<models::BoundingBox2D>,
17    #[serde(rename = "spatialReference")]
18    pub spatial_reference: String,
19    #[serde(rename = "timeInterval")]
20    pub time_interval: Box<models::TimeInterval>,
21}
22
23impl StRectangle {
24    pub fn new(bounding_box: models::BoundingBox2D, spatial_reference: String, time_interval: models::TimeInterval) -> StRectangle {
25        StRectangle {
26            bounding_box: Box::new(bounding_box),
27            spatial_reference,
28            time_interval: Box::new(time_interval),
29        }
30    }
31}
32