Skip to main content

geoengine_api_client/models/
linear_gradient.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct LinearGradient {
15    #[serde(rename = "breakpoints")]
16    pub breakpoints: Vec<models::Breakpoint>,
17    #[serde(rename = "noDataColor")]
18    pub no_data_color: Vec<i32>,
19    #[serde(rename = "overColor")]
20    pub over_color: Vec<i32>,
21    #[serde(rename = "type")]
22    pub r#type: Type,
23    #[serde(rename = "underColor")]
24    pub under_color: Vec<i32>,
25}
26
27impl LinearGradient {
28    pub fn new(breakpoints: Vec<models::Breakpoint>, no_data_color: Vec<i32>, over_color: Vec<i32>, r#type: Type, under_color: Vec<i32>) -> LinearGradient {
29        LinearGradient {
30            breakpoints,
31            no_data_color,
32            over_color,
33            r#type,
34            under_color,
35        }
36    }
37}
38/// 
39#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
40pub enum Type {
41    #[serde(rename = "linearGradient")]
42    LinearGradient,
43}
44
45impl Default for Type {
46    fn default() -> Type {
47        Self::LinearGradient
48    }
49}
50