mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 14:57:01 +00:00
fix ui when openapi is enabled
This commit is contained in:
parent
30edd349ed
commit
c640efcb88
9 changed files with 64 additions and 32 deletions
|
@ -1,3 +1,14 @@
|
|||
error[E0277]: the trait bound `FooBody: OpenapiType` is not satisfied
|
||||
--> $DIR/invalid_body_ty.rs:15:16
|
||||
|
|
||||
15 | fn endpoint(_: FooBody) {
|
||||
| ^^^^^^^ the trait `OpenapiType` is not implemented for `FooBody`
|
||||
|
|
||||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Body: RequestBody + Send;
|
||||
| ----------- required by this bound in `gotham_restful::EndpointWithSchema::Body`
|
||||
|
||||
error[E0277]: the trait bound `for<'de> FooBody: serde::de::Deserialize<'de>` is not satisfied
|
||||
--> $DIR/invalid_body_ty.rs:15:16
|
||||
|
|
||||
|
@ -7,7 +18,7 @@ error[E0277]: the trait bound `for<'de> FooBody: serde::de::Deserialize<'de>` is
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Body: RequestBody + Send;
|
||||
| ----------- required by this bound in `gotham_restful::Endpoint::Body`
|
||||
| ----------- required by this bound in `gotham_restful::EndpointWithSchema::Body`
|
||||
|
|
||||
= note: required because of the requirements on the impl of `serde::de::DeserializeOwned` for `FooBody`
|
||||
= note: required because of the requirements on the impl of `RequestBody` for `FooBody`
|
||||
= note: required because of the requirements on the impl of `gotham_restful::RequestBody` for `FooBody`
|
||||
|
|
|
@ -7,7 +7,7 @@ error[E0277]: the trait bound `for<'de> FooParams: serde::de::Deserialize<'de>`
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Params: QueryStringExtractor<Body> + Sync;
|
||||
| -------------------------- required by this bound in `gotham_restful::Endpoint::Params`
|
||||
| -------------------------- 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
|
||||
|
@ -18,7 +18,7 @@ error[E0277]: the trait bound `FooParams: StateData` is not satisfied
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Params: QueryStringExtractor<Body> + Sync;
|
||||
| -------------------------- required by this bound in `gotham_restful::Endpoint::Params`
|
||||
| -------------------------- 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
|
||||
|
@ -29,4 +29,15 @@ error[E0277]: the trait bound `FooParams: StaticResponseExtender` is not satisfi
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Params: QueryStringExtractor<Body> + Sync;
|
||||
| -------------------------- required by this bound in `gotham_restful::Endpoint::Params`
|
||||
| -------------------------- 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`
|
||||
|
|
|
@ -7,7 +7,7 @@ error[E0277]: the trait bound `for<'de> FooPlaceholders: serde::de::Deserialize<
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Placeholders: PathExtractor<Body> + Sync;
|
||||
| ------------------- required by this bound in `gotham_restful::Endpoint::Placeholders`
|
||||
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||
|
||||
error[E0277]: the trait bound `FooPlaceholders: StateData` is not satisfied
|
||||
--> $DIR/invalid_placeholders_ty.rs:15:16
|
||||
|
@ -18,7 +18,7 @@ error[E0277]: the trait bound `FooPlaceholders: StateData` is not satisfied
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Placeholders: PathExtractor<Body> + Sync;
|
||||
| ------------------- required by this bound in `gotham_restful::Endpoint::Placeholders`
|
||||
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||
|
||||
error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not satisfied
|
||||
--> $DIR/invalid_placeholders_ty.rs:15:16
|
||||
|
@ -29,4 +29,15 @@ error[E0277]: the trait bound `FooPlaceholders: StaticResponseExtender` is not s
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Placeholders: PathExtractor<Body> + Sync;
|
||||
| ------------------- required by this bound in `gotham_restful::Endpoint::Placeholders`
|
||||
| ------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||
|
||||
error[E0277]: the trait bound `FooPlaceholders: OpenapiType` is not satisfied
|
||||
--> $DIR/invalid_placeholders_ty.rs:15:16
|
||||
|
|
||||
15 | fn endpoint(_: FooPlaceholders) {
|
||||
| ^^^^^^^^^^^^^^^ the trait `OpenapiType` is not implemented for `FooPlaceholders`
|
||||
|
|
||||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| #[openapi_bound("Placeholders: crate::OpenapiType")]
|
||||
| ---------------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Placeholders`
|
||||
|
|
|
@ -7,4 +7,4 @@ error[E0277]: the trait bound `FooResponse: ResourceResult` is not satisfied
|
|||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| type Output: ResourceResult + Send;
|
||||
| -------------- required by this bound in `gotham_restful::Endpoint::Output`
|
||||
| -------------- required by this bound in `gotham_restful::EndpointWithSchema::Output`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue