Skip to main content

geoengine_api_client/models/
spatial_grid_descriptor.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 SpatialGridDescriptor {
15    #[serde(rename = "descriptor")]
16    pub descriptor: models::SpatialGridDescriptorState,
17    #[serde(rename = "spatialGrid")]
18    pub spatial_grid: Box<models::SpatialGridDefinition>,
19}
20
21impl SpatialGridDescriptor {
22    pub fn new(descriptor: models::SpatialGridDescriptorState, spatial_grid: models::SpatialGridDefinition) -> SpatialGridDescriptor {
23        SpatialGridDescriptor {
24            descriptor,
25            spatial_grid: Box::new(spatial_grid),
26        }
27    }
28}
29