Skip to content

Commit

Permalink
Merge pull request #20 from samply/fix/blaze-mr-extension
Browse files Browse the repository at this point in the history
added another type of extension to mr struct
  • Loading branch information
enola-dkfz authored Jul 8, 2024
2 parents 62f67d4 + baccac6 commit 67cddec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "prism"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
license = "Apache-2.0"

Expand Down
9 changes: 8 additions & 1 deletion src/mr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,18 @@ struct ValueQuantity {
value: f64,
}

#[derive(Debug, Deserialize, Serialize)]
struct ValueRatio {
denominator: Value,
numerator: Value,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
struct Extension {
url: String,
value_quantity: ValueQuantity,
value_quantity: Option<ValueQuantity>,
value_ratio: Option<ValueRatio>,
}

#[derive(Debug, Deserialize, Serialize)]
Expand Down

0 comments on commit 67cddec

Please sign in to comment.