geoengine-api-client 0.9.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Geo Engine API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * Contact: dev@geoengine.de
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// MockPointSourceParameters : Parameters for the [`MockPointSource`] operator.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MockPointSourceParameters {
    /// Points to be output by the mock point source. 
    #[serde(rename = "points")]
    pub points: Vec<models::Coordinate2D>,
    /// Defines how the spatial bounds of the source are derived.  Defaults to `None`.
    #[serde(rename = "spatialBounds")]
    pub spatial_bounds: Box<models::SpatialBoundsDerive>,
}

impl MockPointSourceParameters {
    /// Parameters for the [`MockPointSource`] operator.
    pub fn new(points: Vec<models::Coordinate2D>, spatial_bounds: models::SpatialBoundsDerive) -> MockPointSourceParameters {
        MockPointSourceParameters {
            points,
            spatial_bounds: Box::new(spatial_bounds),
        }
    }
}