This commit is contained in:
2025-07-10 10:01:44 +02:00
parent b3c9b3c259
commit 4ca3d9073e
4 changed files with 9 additions and 7 deletions

View File

@@ -1,14 +1,11 @@
use serde::Deserialize;
#[derive(Deserialize)]
struct listje {
items: Vec<Channel>,
}
#[derive(Deserialize)]
struct Channel {
id: String,
name: String,
kind: String
channel
}
#[tokio::main]
@@ -25,5 +22,8 @@ async fn main() {
// Err(error) => println!("NOPE"),
// }; //
let channels =serde_json::from_str::<Vec<Channel>>(&resp).unwrap();
for i in channels {
println!{"{:#?}", i.name};
}
}