geoengine-api-client 0.0.33

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Geo Engine API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.9.0
 * Contact: dev@geoengine.de
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SpatialGridDescriptor {
    #[serde(rename = "descriptor")]
    pub descriptor: models::SpatialGridDescriptorState,
    #[serde(rename = "spatialGrid")]
    pub spatial_grid: Box<models::SpatialGridDefinition>,
}

impl SpatialGridDescriptor {
    pub fn new(descriptor: models::SpatialGridDescriptorState, spatial_grid: models::SpatialGridDefinition) -> SpatialGridDescriptor {
        SpatialGridDescriptor {
            descriptor,
            spatial_grid: Box::new(spatial_grid),
        }
    }
}