use super::{TimeChange, TimeZone};
use crate::places::Region;
use serde::Deserialize;
#[derive(Deserialize)]
pub struct DSTEntry {
pub region: Region,
pub stdtimezone: TimeZone,
pub dsttimezone: Option<TimeZone>,
pub special: Option<DSTEntrySpecial>,
pub dststart: Option<String>,
pub dstend: Option<String>,
pub timechanges: Option<Vec<TimeChange>>,
}
#[derive(Deserialize)]
pub struct DSTEntrySpecial {
pub r#type: DSTEntrySpecialType,
}
#[derive(Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum DSTEntrySpecialType {
NoDST,
AllYear,
}