use reqwest::Client; use serde::Deserialize; use crate::Result; #[derive(Deserialize, Default)] pub struct Visits { pub count: String, } pub async fn get_visits(client: &Client) -> Result { let endpoint = "https://stats.blos.sm/counter/TOTAL.json"; Ok(client.get(endpoint).send().await?.json::().await?) }