new format
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
struct Channel {
|
||||
id: String,
|
||||
name: String,
|
||||
type: String
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
//getting the list of channels with id's first
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"squibquib":"UC-9-sjOyxoDCdQlVzObzGsw",
|
||||
"sinixdesign":"UCUQTqWAaSzhAKRanOpes1nA",
|
||||
"misshapenchair": ""
|
||||
"squibquib":{ "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"},
|
||||
"sinixdesign":{ "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"},
|
||||
"misshapenchair":{ "id": "", "type": "essay"}
|
||||
}
|
||||
|
Reference in New Issue
Block a user