gw2api-rs 0.3.0

An asynchronous wrapper for the official Guild Wars 2 API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

use crate::endpoint;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Mini {
    pub id: u64,
    pub name: String,
    pub unlock: Option<String>,
    pub icon: String,
    pub order: u64,
    pub item_id: u64,
}

endpoint!(Mini, "/v2/minis", u64, get_all);