BaseLinker.com API client for Rust

This library is incomplete. I started it as a direct port of https://github.com/bugproof/BaseLinkerApi

PRs and bug reports are always welcome

Usage

rs let baselinker = BaseLinkerClient::new("API_TOKEN".to_owned(), reqwest::Client::new()); let api_result = baselinker.send(&GetCouriersList {}).await; match api_result { Ok(response) => { for courier in response.couriers { println!("Courier: {} {}", courier.code, courier.name); } }, Err(err) => { match err { Error::BaseLinkerError(baselinker_error) => { println!("Error! {} {}", baselinker_error.code, baselinker_error.message); } Error::NetworkError(_) => {} } } }