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
thread 'tokio-runtime-worker-0' panicked at 'not yet implemented', /home/nathan/.cargo/registry/src/github.com-1ecc6299db9ec823/tower-web-0.3.6/src/extract/serde.rs:71:17
Relevant bits of code
#[derive(Clone)]pubstructApiServer{challenge:Arc<Mutex<Challenge>>,}impl_web!{implApiServer{
#[post("/secret")]fn check_secret_submission(&self, submission:SecretSubmission) -> Result<&'staticstr,()> {
println!("Submission: {:#?}", submission);Ok("done")}}}pubfnrun(bind_addr:&'staticstr,challenge:Arc<Mutex<Challenge>>){let addr = bind_addr.parse().expect("Invalid address");println!("API Server listening on http://{}", addr);// A service builder is used to configure our service.ServiceBuilder::new().resource(ApiServer{ challenge }).run(&addr).unwrap();}#[derive(Extract,Debug,Serialize,Deserialize)]pubstructSecretSubmission{secret:String}
Short error
Relevant bits of code
Dependency versions:
I can provide a full stacktrace if needed.
Questions:
The text was updated successfully, but these errors were encountered: