fume_core/
lib.rs

1use serde::de::DeserializeOwned;
2
3pub const HOST: &str = "api.steampowered.com";
4pub const VERSION: &str = "v1";
5
6pub mod steam_web_api_util;
7
8// TODO: maybe return &str && &[]?
9pub trait Query {
10    type Response: DeserializeOwned;
11    fn url() -> String;
12    fn query(&self) -> impl Iterator<Item = (&str, &str)>;
13}
14
15pub(crate) fn url(interface: &str, method: &str) -> String {
16    format!("https://{HOST}/{interface}/{method}/{VERSION}")
17}