geoengine_api_client/models/
ogr_source_error_spec.rs1use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[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