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