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 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GdalLoadingInfoTemporalSlice : one temporal slice of the dataset that requires reading from exactly one Gdal dataset
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GdalLoadingInfoTemporalSlice {
17    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
18    pub cache_ttl: Option<i32>,
19    #[serde(rename = "params", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub params: Option<Option<Box<models::GdalDatasetParameters>>>,
21    #[serde(rename = "time")]
22    pub time: Box<models::TimeInterval>,
23}
24
25impl GdalLoadingInfoTemporalSlice {
26    /// one temporal slice of the dataset that requires reading from exactly one Gdal dataset
27    pub fn new(time: models::TimeInterval) -> GdalLoadingInfoTemporalSlice {
28        GdalLoadingInfoTemporalSlice {
29            cache_ttl: None,
30            params: None,
31            time: Box::new(time),
32        }
33    }
34}
35