geoengine_api_client/models/
mock_point_source_parameters.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MockPointSourceParameters {
16 #[serde(rename = "points")]
18 pub points: Vec<models::Coordinate2D>,
19 #[serde(rename = "spatialBounds")]
21 pub spatial_bounds: Box<models::SpatialBoundsDerive>,
22}
23
24impl MockPointSourceParameters {
25 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