-1

app_data(web::Data::new( awmp::PartsConfig.with_temp_dir("/home/o/blah/static/image"); // returns struct not //value )

1 Answers1

0

this syntax is wrong, my bad. for the code to return a value, the correct code is: ... app_data(awmp::PartsConfig::default().with_temp_dir("#directory_name")...