/*
* 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};
/// GdalSourceParameters : Parameters for the [`GdalSource`] operator.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GdalSourceParameters {
/// Dataset name or identifier to be loaded.
#[serde(rename = "data")]
pub data: String,
/// *Optional*: overview level to use. If not provided, the data source will determine the resolution, i.e., uses its native resolution.
#[serde(rename = "overviewLevel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub overview_level: Option<Option<i32>>,
}
impl GdalSourceParameters {
/// Parameters for the [`GdalSource`] operator.
pub fn new(data: String) -> GdalSourceParameters {
GdalSourceParameters {
data,
overview_level: None,
}
}
}