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