소스 검색

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,