geoengine_api_client/models/
text_symbology.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct TextSymbology {
15 #[serde(rename = "attribute")]
16 pub attribute: String,
17 #[serde(rename = "fillColor")]
18 pub fill_color: Box<models::ColorParam>,
19 #[serde(rename = "stroke")]
20 pub stroke: Box<models::StrokeParam>,
21}
22
23impl TextSymbology {
24 pub fn new(attribute: String, fill_color: models::ColorParam, stroke: models::StrokeParam) -> TextSymbology {
25 TextSymbology {
26 attribute,
27 fill_color: Box::new(fill_color),
28 stroke: Box::new(stroke),
29 }
30 }
31}
32