mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 14:57:01 +00:00
split the ResourceResult trait
This commit is contained in:
parent
c640efcb88
commit
7de11cdae1
12 changed files with 102 additions and 29 deletions
|
@ -1,3 +1,14 @@
|
|||
error[E0277]: the trait bound `FooResponse: ResourceResultSchema` is not satisfied
|
||||
--> $DIR/invalid_return_type.rs:12:18
|
||||
|
|
||||
12 | fn endpoint() -> FooResponse {
|
||||
| ^^^^^^^^^^^ the trait `ResourceResultSchema` is not implemented for `FooResponse`
|
||||
|
|
||||
::: $WORKSPACE/src/endpoint.rs
|
||||
|
|
||||
| #[openapi_bound("Output: crate::ResourceResultSchema")]
|
||||
| ------------------------------------- required by this bound in `gotham_restful::EndpointWithSchema::Output`
|
||||
|
||||
error[E0277]: the trait bound `FooResponse: ResourceResult` is not satisfied
|
||||
--> $DIR/invalid_return_type.rs:12:18
|
||||
|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue