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