-
Hello everyone I am trying to use a generic type I am hitting some blocks. I am trying to create a route, but I am having the following issue here is my code .route(
"/send",
web::post().to(mails::app::controllers::mails_controller::store::<T>),
) for this line of code I am getting the following error cannot find type `T` in this scope
not found in this scope and I don't know how to fix this anymore Any suggestions on what to do next? |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Feb 24, 2023
Replies: 1 comment 1 reply
-
Generic handlers are fine but using a type parameter in that position requires a concrete type in Rust. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
melokki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generic handlers are fine but using a type parameter in that position requires a concrete type in Rust.