Translating that to Rust:
let foo = call_api(url).await;
println!("{}", foo.bar);
Syntatical differences aside, what's complex about it?