auraxis 0.3.0

API & ESS client for Planetside 2 Census API
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::CensusModel;
use crate::api::client::ApiClient;
use async_trait::async_trait;
use std::error::Error;

#[async_trait]
pub trait Query<M: CensusModel> {
    type Output;

    async fn execute(client: &ApiClient) -> Result<Vec<Self::Output>, Box<dyn Error>>;
}