Unhandled Exception: type ‘String’ is not a subtype of type ‘int’ of ‘index’ flutter new

I am not getting output on my app and it should have give a output like many question is how to sisplay json data in my flutter app class AppState extends State<AppName>{ var name ; var email ; int cgpa ; TextEditingController user = new TextEditingController(); String url = ‘http://10.42.0.243:8000/students/’; getData(String username) async{ String profile…

Details

The trait `std::future::Future` is not implemented for `std::result::Result

I’m trying to run basic reqwest example: extern crate reqwest; extern crate tokio; #[tokio::main] async fn main() -> Result<(), reqwest::Error> { let res = reqwest::Client::new() .get(“https://hyper.rs”) .send() .await?; println!(“Status: {}”, res.status()); let body = res.text().await?; println!(“Body:\n\n{}”, body); Ok(()) } Error that I’m getting: –> src/main.rs:6:15 | 6 | let res = reqwest::Client::new() | _______________^ 7…

Details