trent
trent is a lightweight and ergonomic Rust wrapper around the YGOPRODeck API, providing an easy way to query Yu-Gi-Oh! cards
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Example
You can get a card by name:
let client = new;
let card = client.get_by_name.await.unwrap;
match card
Or you can also use the RequestBuilder to create a better query:
let client = new;
// get all dark normal monsters with 1800 atk
let request = new
.with_atk
.with_attribute
.with_type
.build;
let cards = client.get.await.unwrap;
for card in card