Skip to main content

geoengine_api_client/models/
mock_point_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/// MockPointSourceParameters : Parameters for the [`MockPointSource`] operator.
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MockPointSourceParameters {
16    /// Points to be output by the mock point source. 
17    #[serde(rename = "points")]
18    pub points: Vec<models::Coordinate2D>,
19    /// Defines how the spatial bounds of the source are derived.  Defaults to `None`.
20    #[serde(rename = "spatialBounds")]
21    pub spatial_bounds: Box<models::SpatialBoundsDerive>,
22}
23
24impl MockPointSourceParameters {
25    /// Parameters for the [`MockPointSource`] operator.
26    pub fn new(points: Vec<models::Coordinate2D>, spatial_bounds: models::SpatialBoundsDerive) -> MockPointSourceParameters {
27        MockPointSourceParameters {
28            points,
29            spatial_bounds: Box::new(spatial_bounds),
30        }
31    }
32}
33