From 738cdee6dc68fd5c07b6686fd432bc6accf5d695 Mon Sep 17 00:00:00 2001 From: bvanroll Date: Thu, 10 Jul 2025 09:42:43 +0200 Subject: [PATCH] zo --- homegrown/email/src/main.rs | 6 +++++- static/yters.json | 8 +++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/homegrown/email/src/main.rs b/homegrown/email/src/main.rs index ae7c28a..928ed49 100644 --- a/homegrown/email/src/main.rs +++ b/homegrown/email/src/main.rs @@ -1,4 +1,8 @@ use serde::Deserialize; +#[derive(Deserialize)] +struct listje { + items: Vec, +} #[derive(Deserialize)] struct Channel { @@ -20,6 +24,6 @@ async fn main() { // Ok(text) => text, // Err(error) => println!("NOPE"), // }; // - let channels: Vec =serde_json::from_str(&resp).expect("EUH"); + let channels =serde_json::from_str::>(&resp).expect("EUH"); } diff --git a/static/yters.json b/static/yters.json index ff31329..cc33481 100644 --- a/static/yters.json +++ b/static/yters.json @@ -1,3 +1,5 @@ - { "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"} - {"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"} - {"name":"misshapenchair", "id": "", "type": "essay"} +[ +{ "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"}, +{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"}, +{"name":"misshapenchair", "id": "", "type": "essay"} +]