Skip to main content

auraxis/api/
query.rs

1use super::CensusModel;
2use crate::api::client::ApiClient;
3use async_trait::async_trait;
4use std::error::Error;
5
6#[async_trait]
7pub trait Query<M: CensusModel> {
8    type Output;
9
10    async fn execute(client: &ApiClient) -> Result<Vec<Self::Output>, Box<dyn Error>>;
11}