Wrapper for the unofficial azur lane json api in Rust
[dependencies]
azurlane = "1.1"
use azurlane::{AzurLaneRequester, Category};
use reqwest::Client;
fn main() {
let client = Client::new();
let _ = match client.get_ships(Category::RARITY, "Super Rare") {
Ok(response) => {
for i in 0..response.ships.len() {
println!("[{}]: ({})", response.ships[i].id, response.ships[i].name)
}
}
Err(why) => {
panic!("{}", why)
}
};
}