Skip to main content

geoengine_api_client/models/
ogr_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/// OgrSourceParameters : Parameters for the [`OgrSource`] operator.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OgrSourceParameters {
16    /// *Optional*: list of attributes to include. When `None`, all attributes are included.
17    #[serde(rename = "attributeProjection", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub attribute_projection: Option<Option<Vec<String>>>,
19    /// Dataset name or identifier to be loaded.
20    #[serde(rename = "data")]
21    pub data: String,
22}
23
24impl OgrSourceParameters {
25    /// Parameters for the [`OgrSource`] operator.
26    pub fn new(data: String) -> OgrSourceParameters {
27        OgrSourceParameters {
28            attribute_projection: None,
29            data,
30        }
31    }
32}
33