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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StRectangle {
16    #[serde(rename = "boundingBox")]
17    pub bounding_box: Box<models::BoundingBox2D>,
18    #[serde(rename = "spatialReference")]
19    pub spatial_reference: String,
20    #[serde(rename = "timeInterval")]
21    pub time_interval: Box<models::TimeInterval>,
22}
23
24impl StRectangle {
25    pub fn new(bounding_box: models::BoundingBox2D, spatial_reference: String, time_interval: models::TimeInterval) -> StRectangle {
26        StRectangle {
27            bounding_box: Box::new(bounding_box),
28            spatial_reference,
29            time_interval: Box::new(time_interval),
30        }
31    }
32}
33