[−][src]Crate azurlane
azurlane
An azur lane api wrapper for the unofficial azur lane json api
Installation
Add the following to your Cargo.toml
file:
[dependencies]
azurlane = "1.1"
Example
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) } }; }
License
GPL-3.0, View the full license here
Re-exports
pub use requester::AzurLaneRequester; |
pub use requester::Category; |
Modules
model | |
requester | Provides client implementation for the |
Enums
Error | An error type to compose a singular error enum between various dependencies' errors. |
Constants
API_URL | Base API Url |
Type Definitions
Result | A result type to compose a successful value and the library's |