Skip to main content

geoengine_api_client/models/
grid_bounding_box2_d.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 GridBoundingBox2D {
15    #[serde(rename = "bottomRightIdx")]
16    pub bottom_right_idx: Box<models::GridIdx2D>,
17    #[serde(rename = "topLeftIdx")]
18    pub top_left_idx: Box<models::GridIdx2D>,
19}
20
21impl GridBoundingBox2D {
22    pub fn new(bottom_right_idx: models::GridIdx2D, top_left_idx: models::GridIdx2D) -> GridBoundingBox2D {
23        GridBoundingBox2D {
24            bottom_right_idx: Box::new(bottom_right_idx),
25            top_left_idx: Box::new(top_left_idx),
26        }
27    }
28}
29