geoengine_api_client/models/layer_visibility.rs
1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 0.9.0
7 * Contact: dev@geoengine.de
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LayerVisibility {
16 #[serde(rename = "data")]
17 pub data: bool,
18 #[serde(rename = "legend")]
19 pub legend: bool,
20}
21
22impl LayerVisibility {
23 pub fn new(data: bool, legend: bool) -> LayerVisibility {
24 LayerVisibility {
25 data,
26 legend,
27 }
28 }
29}
30