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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TextSymbology {
    #[serde(rename = "attribute")]
    pub attribute: String,
    #[serde(rename = "fillColor")]
    pub fill_color: Box<models::ColorParam>,
    #[serde(rename = "stroke")]
    pub stroke: Box<models::StrokeParam>,
}

impl TextSymbology {
    pub fn new(attribute: String, fill_color: models::ColorParam, stroke: models::StrokeParam) -> TextSymbology {
        TextSymbology {
            attribute,
            fill_color: Box::new(fill_color),
            stroke: Box::new(stroke),
        }
    }
}