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