invidious 0.7.8

Get information about videos from YouTube with this simple Invidious API wrapper. Does not use the YouTube API (No tokens required)
Documentation
use crate::{
    structs::hidden::{Metadata, Software, Usage},
    traits::PublicItems,
};
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Stats {
    pub version: String,
    pub software: Software,
    #[serde(rename = "openRegistrations")]
    pub registrations: bool,
    pub usage: Usage,
    pub metadata: Metadata,
}

impl PublicItems for Stats {
    fn url(_id: &str, params: &str) -> String {
        format!("api/v1/stats/{params}")
    }
}