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
use serde::{Deserialize, Serialize};

use crate::endpoint;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Currency {
    pub id: u64,
    pub name: String,
    pub description: String,
    pub icon: String,
    pub order: u64,
}

endpoint!(Currency, "/v2/currencies", u64, get_all);