geoengine_api_client/models/
static_color.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StaticColor {
16 #[serde(rename = "color")]
17 pub color: Vec<i32>,
18 #[serde(rename = "type")]
19 pub r#type: Type,
20}
21
22impl StaticColor {
23 pub fn new(color: Vec<i32>, r#type: Type) -> StaticColor {
24 StaticColor {
25 color,
26 r#type,
27 }
28 }
29}
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Type {
33 #[serde(rename = "static")]
34 Static,
35}
36
37impl Default for Type {
38 fn default() -> Type {
39 Self::Static
40 }
41}
42