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 GdalMetaDataRegular {
    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
    pub cache_ttl: Option<i32>,
    #[serde(rename = "dataTime")]
    pub data_time: Box<models::TimeInterval>,
    #[serde(rename = "params")]
    pub params: Box<models::GdalDatasetParameters>,
    #[serde(rename = "resultDescriptor")]
    pub result_descriptor: Box<models::RasterResultDescriptor>,
    #[serde(rename = "step")]
    pub step: Box<models::TimeStep>,
    #[serde(rename = "timePlaceholders")]
    pub time_placeholders: std::collections::HashMap<String, models::GdalSourceTimePlaceholder>,
    #[serde(rename = "type")]
    pub r#type: Type,
}

impl GdalMetaDataRegular {
    pub fn new(data_time: models::TimeInterval, params: models::GdalDatasetParameters, result_descriptor: models::RasterResultDescriptor, step: models::TimeStep, time_placeholders: std::collections::HashMap<String, models::GdalSourceTimePlaceholder>, r#type: Type) -> GdalMetaDataRegular {
        GdalMetaDataRegular {
            cache_ttl: None,
            data_time: Box::new(data_time),
            params: Box::new(params),
            result_descriptor: Box::new(result_descriptor),
            step: Box::new(step),
            time_placeholders,
            r#type,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "GdalMetaDataRegular")]
    GdalMetaDataRegular,
}

impl Default for Type {
    fn default() -> Type {
        Self::GdalMetaDataRegular
    }
}