fume-core 0.0.2

A strongly-opinionated Rust wrapper for steam web APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use fume_core::util::{
    get_server_info::GetServerInfoResponse, get_supported_api_list::GetSupportedApiListResponse,
};

#[test]
fn get_supported_apis_decode() {
    let content = std::fs::read_to_string("./tests/responses/get_supported_apis.json").unwrap();
    let response: GetSupportedApiListResponse = serde_json::from_str(&content).unwrap();
    println!("{:#?}", response);
}

#[test]
fn get_server_info_decode() {
    let content = std::fs::read_to_string("./tests/responses/get_server_info.json").unwrap();
    let response: GetServerInfoResponse = serde_json::from_str(&content).unwrap();
    println!("{:#?}", response);
}