Initial commit
This commit is contained in:
13
src/main.rs
Normal file
13
src/main.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
mod mensa;
|
||||
|
||||
//use crate::mensa::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let resp = reqwest::get("https://www.my-stuwe.de//wp-json/mealplans/v1/canteens/611?lang=de")
|
||||
.await?
|
||||
.json::<mensa::MensaShedhalle>()
|
||||
.await?;
|
||||
println!("{:#?}", resp);
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user