Skip to content

Commit 92d63e3

Browse files
committed
refactor: update ArtifactLocation enum to use an internally tagged representation
1 parent 1cd900e commit 92d63e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mithril-common/src/entities/cardano_database.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ impl CardanoDatabaseSnapshot {
5252
}
5353

5454
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
55-
#[serde(rename_all = "snake_case")]
55+
#[serde(rename_all = "snake_case", tag = "type")]
5656
pub enum ArtifactLocation {
57-
Aggregator(String),
57+
Aggregator { uri: String },
58+
CloudStorage { uri: String },
5859
}
5960

6061
/// Locations of the Cardano database related files.

0 commit comments

Comments
 (0)