@@ -53,20 +53,32 @@ impl CardanoDatabaseSnapshot {
53
53
54
54
#[ derive( Clone , Debug , PartialEq , Eq , Serialize , Deserialize ) ]
55
55
#[ serde( rename_all = "snake_case" , tag = "type" ) ]
56
- pub enum ArtifactLocation {
56
+ enum DigestLocation {
57
57
Aggregator { uri : String } ,
58
58
CloudStorage { uri : String } ,
59
59
}
60
60
61
+ #[ derive( Clone , Debug , PartialEq , Eq , Serialize , Deserialize ) ]
62
+ #[ serde( rename_all = "snake_case" , tag = "type" ) ]
63
+ enum ImmutablesLocation {
64
+ CloudStorage { uri : String } ,
65
+ }
66
+
67
+ #[ derive( Clone , Debug , PartialEq , Eq , Serialize , Deserialize ) ]
68
+ #[ serde( rename_all = "snake_case" , tag = "type" ) ]
69
+ enum AncillaryLocation {
70
+ CloudStorage { uri : String } ,
71
+ }
72
+
61
73
/// Locations of the Cardano database related files.
62
74
#[ derive( Clone , Debug , Default , PartialEq , Eq , Serialize , Deserialize ) ]
63
75
pub struct ArtifactsLocations {
64
76
/// Locations of the the immutable file digests.
65
- pub digest : Vec < ArtifactLocation > ,
77
+ digest : Vec < DigestLocation > ,
66
78
/// Locations of the immutable files.
67
- pub immutables : Vec < ArtifactLocation > ,
68
- /// Locations of the ancillary files (ledger and volatile) .
69
- pub ancillary : Vec < ArtifactLocation > ,
79
+ immutables : Vec < ImmutablesLocation > ,
80
+ /// Locations of the ancillary files.
81
+ ancillary : Vec < AncillaryLocation > ,
70
82
}
71
83
72
84
#[ typetag:: serde]
0 commit comments