瀏覽代碼

utoipa variant

Thomas 1 年之前
父節點
當前提交
5bfc50c572
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/annotations/vep.rs

+ 2 - 2
src/annotations/vep.rs

@@ -78,7 +78,7 @@ impl VEP {
     }
 }
 
-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ToSchema)]
 pub struct VEPExtra {
     pub impact: Option<VEPImpact>,
     pub symbol: Option<String>,
@@ -139,7 +139,7 @@ impl FromStr for VEPExtra {
     }
 }
 
-#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
+#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, ToSchema)]
 pub enum VEPImpact {
     Low,
     Moderate,