Skip to main content

geoengine_api_client/models/
ogr_source_error_spec.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/// 
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum OgrSourceErrorSpec {
16    #[serde(rename = "ignore")]
17    Ignore,
18    #[serde(rename = "abort")]
19    Abort,
20
21}
22
23impl std::fmt::Display for OgrSourceErrorSpec {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Ignore => write!(f, "ignore"),
27            Self::Abort => write!(f, "abort"),
28        }
29    }
30}
31
32impl Default for OgrSourceErrorSpec {
33    fn default() -> OgrSourceErrorSpec {
34        Self::Ignore
35    }
36}
37