Skip to main content

geoengine_api_client/models/
edr_vector_spec.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 EdrVectorSpec {
15    #[serde(rename = "time")]
16    pub time: String,
17    #[serde(rename = "x")]
18    pub x: String,
19    #[serde(rename = "y", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub y: Option<Option<String>>,
21}
22
23impl EdrVectorSpec {
24    pub fn new(time: String, x: String) -> EdrVectorSpec {
25        EdrVectorSpec {
26            time,
27            x,
28            y: None,
29        }
30    }
31}
32