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

use crate::endpoint;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Title {
    pub id: u64,
    pub name: String,
    pub achievements: Option<Vec<u64>>,
    pub ap_required: Option<u64>,
}

endpoint!(Title, "/v2/titles", u64, get_all);