@@ -53,26 +53,19 @@ impl CardanoDatabase {
53
53
54
54
#[ derive( Clone , Debug , PartialEq , Eq , Serialize , Deserialize ) ]
55
55
#[ serde( rename_all = "snake_case" ) ]
56
- pub enum ArtifactLocationType {
57
- Aggregator ,
58
- }
59
-
60
- #[ derive( Clone , Debug , PartialEq , Eq , Serialize , Deserialize ) ]
61
- pub struct ArtifactLocationEntry {
62
- #[ serde( rename = "type" ) ]
63
- pub location_type : ArtifactLocationType ,
64
- pub uri : String ,
56
+ pub enum ArtifactLocation {
57
+ Aggregator ( String ) ,
65
58
}
66
59
67
60
/// Locations of the Cardano database related files.
68
61
#[ derive( Clone , Debug , Default , PartialEq , Eq , Serialize , Deserialize ) ]
69
62
pub struct ArtifactsLocations {
70
63
/// Locations of the file containing the digests of the immutable files.
71
- pub digests : Vec < ArtifactLocationEntry > ,
64
+ pub digests : Vec < ArtifactLocation > ,
72
65
/// Locations of the immutable files.
73
- pub immutables : Vec < ArtifactLocationEntry > ,
66
+ pub immutables : Vec < ArtifactLocation > ,
74
67
/// Locations of the ancillary files (ledger and volatile).
75
- pub ancillary : Vec < ArtifactLocationEntry > ,
68
+ pub ancillary : Vec < ArtifactLocation > ,
76
69
}
77
70
78
71
#[ typetag:: serde]
0 commit comments