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