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