@@ -78,7 +78,7 @@ pub struct PrebuiltBlob {
7878}
7979
8080/// Describes the origin of an externally-built package.
81- #[ derive( Clone , Deserialize , Debug , PartialEq ) ]
81+ #[ derive( Clone , Deserialize , Serialize , Debug , PartialEq ) ]
8282#[ serde( tag = "type" , rename_all = "lowercase" ) ]
8383pub enum PackageSource {
8484 /// Describes a package which should be assembled locally.
@@ -149,7 +149,7 @@ impl PackageSource {
149149}
150150
151151/// Describes the output format of the package.
152- #[ derive( Deserialize , Debug , Clone , PartialEq ) ]
152+ #[ derive( Deserialize , Serialize , Debug , Clone , PartialEq ) ]
153153#[ serde( tag = "type" , rename_all = "lowercase" ) ]
154154pub enum PackageOutput {
155155 /// A complete zone image, ready to be deployed to the target.
@@ -166,7 +166,7 @@ pub enum PackageOutput {
166166}
167167
168168/// A single package.
169- #[ derive( Clone , Deserialize , Debug , PartialEq ) ]
169+ #[ derive( Clone , Deserialize , Serialize , Debug , PartialEq ) ]
170170pub struct Package {
171171 /// The name of the service name to be used on the target OS.
172172 pub service_name : ServiceName ,
@@ -840,7 +840,7 @@ impl Package {
840840}
841841
842842/// Describes configuration for a package which contains a Rust binary.
843- #[ derive( Clone , Deserialize , Debug , PartialEq ) ]
843+ #[ derive( Clone , Deserialize , Serialize , Debug , PartialEq ) ]
844844pub struct RustPackage {
845845 /// The name of the compiled binary to be used.
846846 // TODO: Could be extrapolated to "produced build artifacts", we don't
@@ -864,7 +864,7 @@ impl RustPackage {
864864}
865865
866866/// A string which can be modified with key-value pairs.
867- #[ derive( Clone , Deserialize , Debug , PartialEq ) ]
867+ #[ derive( Clone , Deserialize , Serialize , Debug , PartialEq ) ]
868868pub struct InterpolatedString ( String ) ;
869869
870870impl InterpolatedString {
@@ -903,7 +903,7 @@ impl InterpolatedString {
903903///
904904/// These paths may require target-specific interpretation before being
905905/// transformed to an actual [MappedPath].
906- #[ derive( Clone , Deserialize , Debug , PartialEq ) ]
906+ #[ derive( Clone , Deserialize , Serialize , Debug , PartialEq ) ]
907907pub struct InterpolatedMappedPath {
908908 /// Source path.
909909 pub from : InterpolatedString ,
0 commit comments