thunderstore 0.5.0

A library for interacting with the Thunderstore API
Documentation
1
2
3
4
5
6
7
8
9
use crate::{models::schema::Schema, prelude::*, Result};

impl Client {
    pub async fn get_schema(&self, channel: &str) -> Result<Schema> {
        let url = self.url(format_args!("/experimental/schema/{channel}/latest"));
        let response = self.get_json(url).await?;
        Ok(response)
    }
}