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