1
+ error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfied
2
+ --> tests/fail/bad_trait_channel4.rs:26:18
3
+ |
4
+ 26 | _params: Query<QueryParams>,
5
+ | ^^^^^^^^^^^^^^^^^^ the trait `schemars::JsonSchema` is not implemented for `QueryParams`
6
+ |
7
+ = help: the following other types implement trait `schemars::JsonSchema`:
8
+ &'a T
9
+ &'a mut T
10
+ ()
11
+ (T0, T1)
12
+ (T0, T1, T2)
13
+ (T0, T1, T2, T3)
14
+ (T0, T1, T2, T3, T4)
15
+ (T0, T1, T2, T3, T4, T5)
16
+ and $N others
17
+ note: required by a bound in `dropshot::Query`
18
+ --> src/extractor/query.rs
19
+ |
20
+ | pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> {
21
+ | ^^^^^^^^^^ required by this bound in `Query`
22
+
23
+ error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied
24
+ --> tests/fail/bad_trait_channel4.rs:26:18
25
+ |
26
+ 26 | _params: Query<QueryParams>,
27
+ | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams`
28
+ |
29
+ = note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type
30
+ = note: for types from other crates check whether the crate offers a `serde` feature flag
31
+ = help: the following other types implement trait `serde::de::Deserialize<'de>`:
32
+ &'a [u8]
33
+ &'a camino::Utf8Path
34
+ &'a std::path::Path
35
+ &'a str
36
+ ()
37
+ (T,)
38
+ (T0, T1)
39
+ (T0, T1, T2)
40
+ and $N others
41
+ = note: required for `QueryParams` to implement `serde::de::DeserializeOwned`
42
+ note: required by a bound in `dropshot::Query`
43
+ --> src/extractor/query.rs
44
+ |
45
+ | pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> {
46
+ | ^^^^^^^^^^^^^^^^ required by this bound in `Query`
47
+
1
48
error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfied
2
49
--> tests/fail/bad_trait_channel4.rs:39:5
3
50
|
@@ -54,10 +101,14 @@ note: required by a bound in `dropshot::Query`
54
101
| ^^^^^^^^^^^^^^^^ required by this bound in `Query`
55
102
56
103
error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfied
57
- --> tests/fail/bad_trait_channel4.rs:16:1
104
+ --> tests/fail/bad_trait_channel4.rs:39:5
58
105
|
59
- 16 | #[dropshot::api_description]
60
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `schemars::JsonSchema` is not implemented for `QueryParams`
106
+ 39 | / async fn bad_channel(
107
+ 40 | | _rqctx: RequestContext<()>,
108
+ 41 | | _params: Query<QueryParams>,
109
+ 42 | | _upgraded: WebsocketConnection,
110
+ 43 | | ) -> dropshot::WebsocketChannelResult {
111
+ | |_________________________________________^ the trait `schemars::JsonSchema` is not implemented for `QueryParams`
61
112
|
62
113
= help: the following other types implement trait `schemars::JsonSchema`:
63
114
&'a T
@@ -74,13 +125,16 @@ note: required by a bound in `dropshot::Query`
74
125
|
75
126
| pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> {
76
127
| ^^^^^^^^^^ required by this bound in `Query`
77
- = note: this error originates in the attribute macro `dropshot::api_description` (in Nightly builds, run with -Z macro-backtrace for more info)
78
128
79
129
error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied
80
- --> tests/fail/bad_trait_channel4.rs:16:1
130
+ --> tests/fail/bad_trait_channel4.rs:39:5
81
131
|
82
- 16 | #[dropshot::api_description]
83
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams`
132
+ 39 | / async fn bad_channel(
133
+ 40 | | _rqctx: RequestContext<()>,
134
+ 41 | | _params: Query<QueryParams>,
135
+ 42 | | _upgraded: WebsocketConnection,
136
+ 43 | | ) -> dropshot::WebsocketChannelResult {
137
+ | |_________________________________________^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams`
84
138
|
85
139
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type
86
140
= note: for types from other crates check whether the crate offers a `serde` feature flag
@@ -100,7 +154,6 @@ note: required by a bound in `dropshot::Query`
100
154
|
101
155
| pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> {
102
156
| ^^^^^^^^^^^^^^^^ required by this bound in `Query`
103
- = note: this error originates in the attribute macro `dropshot::api_description` (in Nightly builds, run with -Z macro-backtrace for more info)
104
157
105
158
error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfied
106
159
--> tests/fail/bad_trait_channel4.rs:41:18
@@ -150,10 +203,10 @@ note: required by a bound in `dropshot::Query`
150
203
| ^^^^^^^^^^^^^^^^ required by this bound in `Query`
151
204
152
205
error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfied
153
- --> tests/fail/bad_trait_channel4.rs:26:18
206
+ --> tests/fail/bad_trait_channel4.rs:16:1
154
207
|
155
- 26 | _params: Query<QueryParams>,
156
- | ^^^^^^^^^^^^^^^^^^ the trait `schemars::JsonSchema` is not implemented for `QueryParams`
208
+ 16 | #[dropshot::api_description]
209
+ | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ the trait `schemars::JsonSchema` is not implemented for `QueryParams`
157
210
|
158
211
= help: the following other types implement trait `schemars::JsonSchema`:
159
212
&'a T
@@ -170,12 +223,13 @@ note: required by a bound in `dropshot::Query`
170
223
|
171
224
| pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> {
172
225
| ^^^^^^^^^^ required by this bound in `Query`
226
+ = note: this error originates in the attribute macro `dropshot::api_description` (in Nightly builds, run with -Z macro-backtrace for more info)
173
227
174
228
error[E0277]: the trait bound `for<'de> QueryParams: serde::de::Deserialize<'de>` is not satisfied
175
- --> tests/fail/bad_trait_channel4.rs:26:18
229
+ --> tests/fail/bad_trait_channel4.rs:16:1
176
230
|
177
- 26 | _params: Query<QueryParams>,
178
- | ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams`
231
+ 16 | #[dropshot::api_description]
232
+ | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ the trait `for<'de> serde::de::Deserialize<'de>` is not implemented for `QueryParams`
179
233
|
180
234
= note: for local types consider adding `#[derive(serde::Deserialize)]` to your `QueryParams` type
181
235
= note: for types from other crates check whether the crate offers a `serde` feature flag
@@ -195,6 +249,7 @@ note: required by a bound in `dropshot::Query`
195
249
|
196
250
| pub struct Query<QueryType: DeserializeOwned + JsonSchema + Send + Sync> {
197
251
| ^^^^^^^^^^^^^^^^ required by this bound in `Query`
252
+ = note: this error originates in the attribute macro `dropshot::api_description` (in Nightly builds, run with -Z macro-backtrace for more info)
198
253
199
254
error[E0277]: the trait bound `QueryParams: schemars::JsonSchema` is not satisfied
200
255
--> tests/fail/bad_trait_channel4.rs:20:5
0 commit comments