zo
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
#[derive(Deserialize)]
|
||||||
|
struct listje {
|
||||||
|
items: Vec<Channel>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct Channel {
|
struct Channel {
|
||||||
@@ -20,6 +24,6 @@ async fn main() {
|
|||||||
// Ok(text) => text,
|
// Ok(text) => text,
|
||||||
// Err(error) => println!("NOPE"),
|
// Err(error) => println!("NOPE"),
|
||||||
// }; //
|
// }; //
|
||||||
let channels: Vec<Channel> =serde_json::from_str(&resp).expect("EUH");
|
let channels =serde_json::from_str::<Vec<Channel>>(&resp).expect("EUH");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
{ "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"}
|
[
|
||||||
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"}
|
{ "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"},
|
||||||
{"name":"misshapenchair", "id": "", "type": "essay"}
|
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"},
|
||||||
|
{"name":"misshapenchair", "id": "", "type": "essay"}
|
||||||
|
]
|
||||||
|
Reference in New Issue
Block a user