Skip to main content

geoengine_api_client/models/
gdal_loading_info_temporal_slice.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/// GdalLoadingInfoTemporalSlice : one temporal slice of the dataset that requires reading from exactly one Gdal dataset
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GdalLoadingInfoTemporalSlice {
16    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
17    pub cache_ttl: Option<i32>,
18    #[serde(rename = "params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub params: Option<Option<Box<models::GdalDatasetParameters>>>,
20    #[serde(rename = "time")]
21    pub time: Box<models::TimeInterval>,
22}
23
24impl GdalLoadingInfoTemporalSlice {
25    /// one temporal slice of the dataset that requires reading from exactly one Gdal dataset
26    pub fn new(time: models::TimeInterval) -> GdalLoadingInfoTemporalSlice {
27        GdalLoadingInfoTemporalSlice {
28            cache_ttl: None,
29            params: None,
30            time: Box::new(time),
31        }
32    }
33}
34