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