We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Response derive isn't handing down debug derives.
Response
For example the following won't work:
#[derive(Debug, Response)] pub struct ApiResponse<T> where T: Serialize + Debug, { pub value: Option<T>, pub msg: Option<String>, }
Will throw
error[E0277]: `T` doesn't implement `std::fmt::Debug` --> src/models.rs:122:17 | 122 | #[derive(Debug, Response)] | ^^^^^^^^ `T` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
I was told that serde is handling this via attributes which tower-web probably also would have to implement.
The text was updated successfully, but these errors were encountered:
Note: the above example won't compile, even without Debug-Derive as tower-web seems to require debug internally, which T doesn't receive.
Debug
Sorry, something went wrong.
Thanks for the report 👍
No branches or pull requests
The
Response
derive isn't handing down debug derives.For example the following won't work:
Will throw
I was told that serde is handling this via attributes which tower-web probably also would have to implement.
The text was updated successfully, but these errors were encountered: