gw2lib_model/authenticated/account/
materials.rs1use serde::{Deserialize, Serialize};
2
3use crate::{items::ItemId, Endpoint, FixedEndpoint};
4
5pub type AccountMaterials = Vec<AccountMaterial>;
6
7#[derive(Clone, PartialEq, Eq, PartialOrd, Debug, Serialize, Deserialize)]
8#[cfg_attr(test, serde(deny_unknown_fields))]
9pub struct AccountMaterial {
10 pub id: ItemId,
11 pub category: u32,
12 pub count: u32,
13}
14
15impl Endpoint for AccountMaterials {
16 const AUTHENTICATED: bool = true;
17 const LOCALE: bool = false;
18 const URL: &'static str = "v2/account/materials";
19 const VERSION: &'static str = "2022-07-25T00:00:00.000Z";
20}
21
22impl FixedEndpoint for AccountMaterials {}