2021-03-09 21:23:44 +01:00
|
|
|
error[E0277]: the trait bound `FooParams: OpenapiType` is not satisfied
|
|
|
|
--> $DIR/invalid_params_ty.rs:15:16
|
|
|
|
|
|
|
|
|
15 | fn endpoint(_: FooParams) {
|
|
|
|
| ^^^^^^^^^ the trait `OpenapiType` is not implemented for `FooParams`
|
|
|
|
|
|
|
|
|
::: $WORKSPACE/src/endpoint.rs
|
|
|
|
|
|
|
|
|
| #[openapi_bound("Params: OpenapiType")]
|
|
|
|
| --------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
|
|
|
|
2021-02-21 18:06:50 +01:00
|
|
|
error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>` is not satisfied
|
|
|
|
--> $DIR/invalid_params_ty.rs:15:16
|
|
|
|
|
|
|
|
|
15 | fn endpoint(_: FooParams) {
|
|
|
|
| ^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `FooParams`
|
|
|
|
|
|
|
|
|
::: $WORKSPACE/src/endpoint.rs
|
|
|
|
|
|
2021-03-09 21:23:44 +01:00
|
|
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
2021-02-21 18:31:44 +01:00
|
|
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
2021-02-21 18:06:50 +01:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `FooParams: StateData` is not satisfied
|
|
|
|
--> $DIR/invalid_params_ty.rs:15:16
|
|
|
|
|
|
|
|
|
15 | fn endpoint(_: FooParams) {
|
|
|
|
| ^^^^^^^^^ the trait `StateData` is not implemented for `FooParams`
|
|
|
|
|
|
|
|
|
::: $WORKSPACE/src/endpoint.rs
|
|
|
|
|
|
2021-03-09 21:23:44 +01:00
|
|
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
2021-02-21 18:31:44 +01:00
|
|
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
2021-02-21 18:06:50 +01:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfied
|
|
|
|
--> $DIR/invalid_params_ty.rs:15:16
|
|
|
|
|
|
|
|
|
15 | fn endpoint(_: FooParams) {
|
|
|
|
| ^^^^^^^^^ the trait `StaticResponseExtender` is not implemented for `FooParams`
|
|
|
|
|
|
|
|
|
::: $WORKSPACE/src/endpoint.rs
|
|
|
|
|
|
2021-03-09 21:23:44 +01:00
|
|
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
2021-02-21 18:31:44 +01:00
|
|
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
|
|
|
|
2021-03-09 21:23:44 +01:00
|
|
|
error[E0277]: the trait bound `FooParams: Clone` is not satisfied
|
2021-02-21 18:31:44 +01:00
|
|
|
--> $DIR/invalid_params_ty.rs:15:16
|
|
|
|
|
|
|
|
|
15 | fn endpoint(_: FooParams) {
|
2021-03-09 21:23:44 +01:00
|
|
|
| ^^^^^^^^^ the trait `Clone` is not implemented for `FooParams`
|
2021-02-21 18:31:44 +01:00
|
|
|
|
|
|
|
|
::: $WORKSPACE/src/endpoint.rs
|
|
|
|
|
|
2021-03-09 21:23:44 +01:00
|
|
|
| type Params: QueryStringExtractor<Body> + Clone + Sync;
|
|
|
|
| ----- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|