Skip to main content

geoengine_api_client/models/
gdal_metadata_net_cdf_cf.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/// GdalMetadataNetCdfCf : Meta data for 4D `NetCDF` CF datasets
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GdalMetadataNetCdfCf {
16    /// A band offset specifies the first band index to use for the first point in time. All other time steps are added to this offset.
17    #[serde(rename = "bandOffset")]
18    pub band_offset: i32,
19    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
20    pub cache_ttl: Option<i32>,
21    /// We use the end to specify the last, non-inclusive valid time point. Queries behind this point return no data. TODO: Alternatively, we could think about using the number of possible time steps in the future.
22    #[serde(rename = "end")]
23    pub end: i64,
24    #[serde(rename = "params")]
25    pub params: Box<models::GdalDatasetParameters>,
26    #[serde(rename = "resultDescriptor")]
27    pub result_descriptor: Box<models::RasterResultDescriptor>,
28    #[serde(rename = "start")]
29    pub start: i64,
30    #[serde(rename = "step")]
31    pub step: Box<models::TimeStep>,
32    #[serde(rename = "type")]
33    pub r#type: Type,
34}
35
36impl GdalMetadataNetCdfCf {
37    /// Meta data for 4D `NetCDF` CF datasets
38    pub fn new(band_offset: i32, end: i64, params: models::GdalDatasetParameters, result_descriptor: models::RasterResultDescriptor, start: i64, step: models::TimeStep, r#type: Type) -> GdalMetadataNetCdfCf {
39        GdalMetadataNetCdfCf {
40            band_offset,
41            cache_ttl: None,
42            end,
43            params: Box::new(params),
44            result_descriptor: Box::new(result_descriptor),
45            start,
46            step: Box::new(step),
47            r#type,
48        }
49    }
50}
51/// 
52#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
53pub enum Type {
54    #[serde(rename = "GdalMetaDataNetCdfCf")]
55    GdalMetaDataNetCdfCf,
56}
57
58impl Default for Type {
59    fn default() -> Type {
60        Self::GdalMetaDataNetCdfCf
61    }
62}
63