Skip to main content

geoengine_api_client/models/
vector_result_descriptor.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct VectorResultDescriptor {
15    #[serde(rename = "bbox", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
16    pub bbox: Option<Option<Box<models::BoundingBox2D>>>,
17    #[serde(rename = "columns")]
18    pub columns: std::collections::HashMap<String, models::VectorColumnInfo>,
19    #[serde(rename = "dataType")]
20    pub data_type: models::VectorDataType,
21    #[serde(rename = "spatialReference")]
22    pub spatial_reference: String,
23    #[serde(rename = "time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub time: Option<Option<Box<models::TimeInterval>>>,
25}
26
27impl VectorResultDescriptor {
28    pub fn new(columns: std::collections::HashMap<String, models::VectorColumnInfo>, data_type: models::VectorDataType, spatial_reference: String) -> VectorResultDescriptor {
29        VectorResultDescriptor {
30            bbox: None,
31            columns,
32            data_type,
33            spatial_reference,
34            time: None,
35        }
36    }
37}
38