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};

/// RasterToDatasetQueryRectangle : A spatio-temporal rectangle with a specified resolution
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RasterToDatasetQueryRectangle {
    #[serde(rename = "spatialBounds")]
    pub spatial_bounds: Box<models::SpatialPartition2D>,
    #[serde(rename = "timeInterval")]
    pub time_interval: Box<models::TimeInterval>,
}

impl RasterToDatasetQueryRectangle {
    /// A spatio-temporal rectangle with a specified resolution
    pub fn new(spatial_bounds: models::SpatialPartition2D, time_interval: models::TimeInterval) -> RasterToDatasetQueryRectangle {
        RasterToDatasetQueryRectangle {
            spatial_bounds: Box::new(spatial_bounds),
            time_interval: Box::new(time_interval),
        }
    }
}