geoengine_api_client/models/gdal_source_parameters.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/// GdalSourceParameters : Parameters for the [`GdalSource`] operator.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GdalSourceParameters {
16 /// Dataset name or identifier to be loaded.
17 #[serde(rename = "data")]
18 pub data: String,
19 /// *Optional*: overview level to use. If not provided, the data source will determine the resolution, i.e., uses its native resolution.
20 #[serde(rename = "overviewLevel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21 pub overview_level: Option<Option<i32>>,
22}
23
24impl GdalSourceParameters {
25 /// Parameters for the [`GdalSource`] operator.
26 pub fn new(data: String) -> GdalSourceParameters {
27 GdalSourceParameters {
28 data,
29 overview_level: None,
30 }
31 }
32}
33