@@ -3,8 +3,8 @@ use bencher_endpoint::{
33 TotalCount ,
44} ;
55use bencher_json:: {
6- BenchmarkName , JsonBenchmark , JsonBenchmarks , JsonDirection , JsonPagination , ResourceId ,
7- Search ,
6+ BenchmarkName , BenchmarkResourceId , JsonBenchmark , JsonBenchmarks , JsonDirection ,
7+ JsonPagination , ProjectResourceId , Search ,
88 project:: benchmark:: { JsonNewBenchmark , JsonUpdateBenchmark } ,
99} ;
1010use bencher_rbac:: project:: Permission ;
@@ -32,7 +32,7 @@ use serde::Deserialize;
3232#[ derive( Deserialize , JsonSchema ) ]
3333pub struct ProjBenchmarksParams {
3434 /// The slug or UUID for a project.
35- pub project : ResourceId ,
35+ pub project : ProjectResourceId ,
3636}
3737
3838pub type ProjBenchmarksPagination = JsonPagination < ProjBenchmarksSort > ;
@@ -227,9 +227,9 @@ async fn post_inner(
227227#[ derive( Deserialize , JsonSchema ) ]
228228pub struct ProjBenchmarkParams {
229229 /// The slug or UUID for a project.
230- pub project : ResourceId ,
230+ pub project : ProjectResourceId ,
231231 /// The slug or UUID for a benchmark.
232- pub benchmark : ResourceId ,
232+ pub benchmark : BenchmarkResourceId ,
233233}
234234
235235#[ endpoint {
0 commit comments