use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Biomarker {
pub name: String,
pub biomarker_type: BiomarkerType,
pub clinical_use: String,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub enum BiomarkerType {
Diagnostic,
Prognostic,
Predictive,
Pharmacodynamic,
Safety,
}
impl std::fmt::Display for BiomarkerType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::Diagnostic => write!(f, "Diagnostic"),
Self::Prognostic => write!(f, "Prognostic"),
Self::Predictive => write!(f, "Predictive"),
Self::Pharmacodynamic => write!(f, "Pharmacodynamic"),
Self::Safety => write!(f, "Safety"),
}
}
}