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