ifpaclient 0.1.2

Async Rust client for the IFPA Pinball API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::IfpaClient;
use crate::IfpaError;
use crate::models::other::*;

impl IfpaClient {
    pub async fn get_countries(&self) -> Result<CountriesResponse, IfpaError> {
        let req = self.request("/other/countries");
        self.send(req).await
    }

    pub async fn get_state_provs(&self) -> Result<StateProvsResponse, IfpaError> {
        let req = self.request("/other/stateprovs");
        self.send(req).await
    }
}