Skip to main content

geoengine_api_client/models/
wms_request.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/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum WmsRequest {
17    #[serde(rename = "GetCapabilities")]
18    GetCapabilities,
19    #[serde(rename = "GetMap")]
20    GetMap,
21    #[serde(rename = "GetFeatureInfo")]
22    GetFeatureInfo,
23    #[serde(rename = "GetStyles")]
24    GetStyles,
25    #[serde(rename = "GetLegendGraphic")]
26    GetLegendGraphic,
27
28}
29
30impl std::fmt::Display for WmsRequest {
31    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
32        match self {
33            Self::GetCapabilities => write!(f, "GetCapabilities"),
34            Self::GetMap => write!(f, "GetMap"),
35            Self::GetFeatureInfo => write!(f, "GetFeatureInfo"),
36            Self::GetStyles => write!(f, "GetStyles"),
37            Self::GetLegendGraphic => write!(f, "GetLegendGraphic"),
38        }
39    }
40}
41
42impl Default for WmsRequest {
43    fn default() -> WmsRequest {
44        Self::GetCapabilities
45    }
46}
47