@@ -65,25 +65,6 @@ pub mod graph {
6565 PercentRelative ,
6666 }
6767
68- #[ derive( Debug , PartialEq , Clone , Serialize , Deserialize ) ]
69- pub struct GraphData {
70- pub commit : u16 ,
71- pub absolute : f32 ,
72- // Percent change from the first datapoint shown
73- pub percent_first : f32 ,
74- pub y : f32 ,
75- pub x : u64 ,
76- pub is_interpolated : bool ,
77- }
78-
79- #[ derive( Debug , PartialEq , Clone , Serialize ) ]
80- pub struct Response {
81- pub benchmarks : HashMap < String , HashMap < String , Vec < ( String , Vec < GraphData > ) > > > ,
82- pub max : HashMap < String , f32 > ,
83- pub colors : Vec < String > ,
84- pub commits : Vec < String > ,
85- }
86-
8768 #[ derive( Debug , PartialEq , Clone , Serialize ) ]
8869 pub struct Series {
8970 // y-values
@@ -93,7 +74,7 @@ pub mod graph {
9374 }
9475
9576 #[ derive( Debug , PartialEq , Clone , Serialize ) ]
96- pub struct NewResponse {
77+ pub struct Response {
9778 // (UTC timestamp in seconds, sha)
9879 pub commits : Vec < ( i64 , String ) > ,
9980 pub benchmarks : HashMap < String , HashMap < database:: Profile , HashMap < String , Series > > > ,
0 commit comments