Skip to main content

geoengine_api_client/models/
stroke_param.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StrokeParam {
16    #[serde(rename = "color")]
17    pub color: Box<models::ColorParam>,
18    #[serde(rename = "width")]
19    pub width: Box<models::NumberParam>,
20}
21
22impl StrokeParam {
23    pub fn new(color: models::ColorParam, width: models::NumberParam) -> StrokeParam {
24        StrokeParam {
25            color: Box::new(color),
26            width: Box::new(width),
27        }
28    }
29}
30