You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound Method: Type is not satisfied
--> /Users/vivo/Desktop/code/fun-family/app/crates/fun-core/src/record.rs:74:17
|
74 | pub method: Method,
| ^^^^^^ the trait Type is not implemented for Method
|
= help: the following other types implement trait Type:
&'a T
&'a [T]
&'a str
()
(T10, T11, T12, T13)
(T11, T12, T13)
(T12, T13)
(T13,)
and 100 others
The text was updated successfully, but these errors were encountered:
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default, Type)]
pub struct ProxiedRequest {
#[serde(with = "http_serde::method")]
pub method: Method,
#[serde(with = "http_serde::uri")]
pub uri: Uri,
#[serde(with = "http_serde::version")]
pub version: Version,
#[serde(with = "http_serde::header_map")]
pub headers: HeaderMap,
pub body: Option,
pub time: i64,
pub rule: Option,
}
// -> got error
error[E0277]: the trait bound
Method: Type
is not satisfied--> /Users/vivo/Desktop/code/fun-family/app/crates/fun-core/src/record.rs:74:17
|
74 | pub method: Method,
| ^^^^^^ the trait
Type
is not implemented forMethod
|
= help: the following other types implement trait
Type
:&'a T
&'a [T]
&'a str
()
(T10, T11, T12, T13)
(T11, T12, T13)
(T12, T13)
(T13,)
and 100 others
The text was updated successfully, but these errors were encountered: