mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 21:12:28 +00:00
43 lines
1.9 KiB
Text
43 lines
1.9 KiB
Text
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
|
|
|
|
|
| type Params: QueryStringExtractor<Body> + Sync;
|
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
|
|
|
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
|
|
|
|
|
| type Params: QueryStringExtractor<Body> + Sync;
|
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
|
|
|
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
|
|
|
|
|
| type Params: QueryStringExtractor<Body> + Sync;
|
|
| -------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|
|
|
|
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: crate::OpenapiType")]
|
|
| ---------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Params`
|