типа да
async fn api(data: web::Json<Value>, info: web::Path<(String)>) -> impl Responder {
}
error[E0277]: the trait bound `fn(actix_web::types::json::Json<serde_json::value::Value>, actix_web::types::path::Path<std::string::String>) -> impl core::future::future::Future {server::api}: actix_web::service::HttpServiceFactory` is not satisfied
--> src/server.rs:79:22
|
79 | .service(api)
| ^^^ the trait `actix_web::service::HttpServiceFactory` is not implemented for `fn(actix_web::types::json::Json<serde_json::value::Value>, actix_web::types::path::Path<std::string::String>) -> impl core::future::future::Future {server::api}`
error: aborting due to previous error; 5 warnings emitted
For more information about this error, try `rustc --explain E0277`.
error: could not compile `server`.
To learn more, run the command again with --verbose.
[duckerman@duck server]$