@@ -807,7 +807,7 @@ pub struct ArtifactCollection {
807807 pub end_time : DateTime < Utc > ,
808808}
809809
810- #[ derive( Debug , Copy , Clone , PartialEq ) ]
810+ #[ derive( Debug , Copy , Clone , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
811811pub enum BenchmarkRequestStatus {
812812 WaitingForArtifacts ,
813813 ArtifactsReady ,
@@ -858,7 +858,7 @@ const BENCHMARK_REQUEST_TRY_STR: &str = "try";
858858const BENCHMARK_REQUEST_MASTER_STR : & str = "master" ;
859859const BENCHMARK_REQUEST_RELEASE_STR : & str = "release" ;
860860
861- #[ derive( Debug , Clone , PartialEq ) ]
861+ #[ derive( Debug , Clone , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
862862pub enum BenchmarkRequestType {
863863 /// A Try commit
864864 Try {
@@ -886,7 +886,7 @@ impl fmt::Display for BenchmarkRequestType {
886886 }
887887}
888888
889- #[ derive( Debug , Clone , PartialEq ) ]
889+ #[ derive( Debug , Clone , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
890890pub struct BenchmarkRequest {
891891 commit_type : BenchmarkRequestType ,
892892 // When was the compiler artifact created
@@ -1051,7 +1051,7 @@ impl BenchmarkRequestIndex {
10511051 }
10521052}
10531053
1054- #[ derive( Debug , Clone , PartialEq ) ]
1054+ #[ derive( Debug , Clone , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
10551055pub enum BenchmarkJobStatus {
10561056 Queued ,
10571057 InProgress {
@@ -1093,7 +1093,7 @@ impl fmt::Display for BenchmarkJobStatus {
10931093 }
10941094}
10951095
1096- #[ derive( Debug , Copy , Clone , PartialEq ) ]
1096+ #[ derive( Debug , Copy , Clone , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
10971097pub struct BenchmarkSet ( u32 ) ;
10981098
10991099impl BenchmarkSet {
@@ -1108,7 +1108,7 @@ impl BenchmarkSet {
11081108/// Each request is split into several `BenchmarkJob`s. Collectors poll the
11091109/// queue and claim a job only when its `benchmark_set` matches one of the sets
11101110/// they are responsible for.
1111- #[ derive( Debug , Clone , PartialEq ) ]
1111+ #[ derive( Debug , Clone , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
11121112pub struct BenchmarkJob {
11131113 id : u32 ,
11141114 target : Target ,
@@ -1181,7 +1181,7 @@ impl BenchmarkJobConclusion {
11811181}
11821182
11831183/// The configuration for a collector
1184- #[ derive( Debug , PartialEq ) ]
1184+ #[ derive( Debug , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
11851185pub struct CollectorConfig {
11861186 name : String ,
11871187 target : Target ,
@@ -1219,7 +1219,7 @@ impl CollectorConfig {
12191219
12201220/// The data that can be retrived from the database directly to populate the
12211221/// status page
1222- #[ derive( Debug , PartialEq ) ]
1222+ #[ derive( Debug , PartialEq , serde :: Deserialize , serde :: Serialize ) ]
12231223pub struct PartialStatusPageData {
12241224 pub completed_requests : Vec < ( BenchmarkRequest , String , Vec < String > ) > ,
12251225 pub in_progress : Vec < ( BenchmarkRequest , Vec < BenchmarkJob > ) > ,
0 commit comments