The ideal result would be something like this:
lazy_static! {
static ref LATESTGAMEDATA: god_rss::RSSGameData = async {
println!("Loading latest game data...");
god_rss::get_latest_game_data().await.unwrap()
};
}
god_rss::RSSGameData
(created by async god_rss::get_latest_game_data()
) is a struct which contains three Vec<String>
s
I cannot seem to find a way to apply this value, the ? operator won't work because it is not inside of a function...