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
use crate::domain::universe::typee::Type;
use crate::ApiClient;
use crate::Result;

/// Get a type by id. type being a reserved keyword in rust, we get a typee
pub async fn typee(client: &ApiClient, id: u32) -> Result<Option<Type>> {
    client.query_esi(format!("universe/types/{}/", id)).await
}