use nttb_api::NTTBApi; #[tokio::main] async fn main(){ // let mut api = NTTBGuestApi{}; let api = NTTBApi::guest().unwrap(); match api.search_player("van Beilen").await { Ok(players) => { if let Some(player) = players.list.first() { println!("get info kees"); let player_info = api.get_info(player.bondsnumber).await.unwrap(); let event = player_info.results.first().unwrap(); dbg!(api.event_get_info(event.id).await); }else{ println!("where is kees"); } }, Err(e) => { dbg!(e); }, } // dbg!(); }