Skip to main content

Crate hamdb

Crate hamdb 

Source
Expand description

Minimal async client for the public HamDB amateur-radio callsign lookup service.

The crate exposes a v1 module that implements the current version of the API as well as a couple of helper modules for parsing and error handling.

§Quick start

ⓘ
use hamdb::v1::Client;

let client = Client::new("my-app-name");
let callsign = client.lookup("W4AQL").await?;
println!("{} ({})", callsign.call, callsign.country);

Re-exports§

pub use error::Error;

Modules§

error
Error types returned by the HamDB client.
parsing
Utility types for parsing and validating amateur-radio callsigns before submitting them to the HamDB API.
v1
HamDB API v1 client.