use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum OgrSourceErrorSpec {
#[serde(rename = "ignore")]
Ignore,
#[serde(rename = "abort")]
Abort,
}
impl std::fmt::Display for OgrSourceErrorSpec {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Ignore => write!(f, "ignore"),
Self::Abort => write!(f, "abort"),
}
}
}
impl Default for OgrSourceErrorSpec {
fn default() -> OgrSourceErrorSpec {
Self::Ignore
}
}