eversal-esi 0.1.2

Eve Online's ESI API library for Rust and Eversal projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{
  get_public,
  model::universe::{Station, System},
};

pub async fn get_universe_station(station_id: i64) -> Result<Station, reqwest::Error> {
  get_public::<Station>(&format!("universe/stations/{}", station_id), None).await
}

pub async fn get_universe_system(system_id: i32) -> Result<System, reqwest::Error> {
  get_public::<System>(&format!("universe/systems/{}", system_id), None).await
}