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