Skip to content

Commit

Permalink
fix: add partial field to cdot json representation struct (#179)
Browse files Browse the repository at this point in the history
* fix: add partial field to cdot json representation struct

* do not serialize partial tag

* cargo insta snapshot review
  • Loading branch information
tedil authored Jun 28, 2024
1 parent 2de1b8a commit 113a06a
Show file tree
Hide file tree
Showing 2 changed files with 392 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/cdot/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ pub mod models {
pub hgnc: Option<String>,
/// Identifier of the transcript, same as key in `transcripts`, e.g., `"NM_007294.3"` for BRCA1.
pub id: String,
/// When the transcript does not match the primary assembly (`"NC_"`) perfectly / the assembly itself is wrong/partial
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(default)]
pub partial: Option<u8>,
/// Identifier of corresponding protein, e.g., `"NP_009225.1"` for `"NM_007294.3"` of BRCA1.
#[serde(default)]
pub protein: Option<String>,
Expand Down
Loading

0 comments on commit 113a06a

Please sign in to comment.