Skip to main content

geoengine_api_client/models/
mock_point_source.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/// MockPointSource : The [`MockPointSource`] is a source operator that provides mock vector point data for testing and development purposes. 
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MockPointSource {
16    #[serde(rename = "params")]
17    pub params: Box<models::MockPointSourceParameters>,
18    #[serde(rename = "type")]
19    pub r#type: Type,
20}
21
22impl MockPointSource {
23    /// The [`MockPointSource`] is a source operator that provides mock vector point data for testing and development purposes. 
24    pub fn new(params: models::MockPointSourceParameters, r#type: Type) -> MockPointSource {
25        MockPointSource {
26            params: Box::new(params),
27            r#type,
28        }
29    }
30}
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum Type {
34    #[serde(rename = "MockPointSource")]
35    MockPointSource,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::MockPointSource
41    }
42}
43