eve-esi-api 0.0.4

This library provides an authentication to Eve-esi API and some endpoints to call.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::domain::universe::stargate::Stargate;
use crate::ApiClient;
use crate::Result;

/// Stargate endpoint, get infos on a stargate with given id
pub async fn stargate(client: &ApiClient, id: u32) -> Result<Option<Stargate>> {
    client
        .query_esi(format!("universe/stargates/{}/", id))
        .await
}