Crates.io | brasilapi-client |
lib.rs | brasilapi-client |
version | 0.2.2 |
source | src |
created_at | 2021-09-07 12:21:16.918188 |
updated_at | 2021-12-20 05:00:57.208534 |
description | Rust client implementation to consume BrasilAPI |
homepage | |
repository | https://github.com/rvcampos/brasilapi-client-rust |
max_upload_size | |
id | 447964 |
size | 30,266 |
Rust client implementation for Brasil API
To use this client, add the following to your Cargo.toml:
[dependencies]
brasilapi-client = "0.2"
You may also choose a runtime
futures = "0.3" # If not using async runtimes
use brasilapi_client::{client::BrasilApiClient};
use futures::executor::block_on;
fn main() { block_on(async move {
// As this API is public, you can use the following default builder
let cli = BrasilApiClient::new_default();
// Get the address info for zipcode "01402-000"
let zipcode_answer = cli.get_cep("01402-000", None).await.unwrap();
println!("Street: {}", zipcode_answer.street);
})}
Output:
Street: Avenida Brigadeiro Luiz Antonio
Implemented
TODO
Implemented
Implemented
TODO
TODO