gw2lib_model/authenticated/commerce/
delivery.rs1use serde::{Deserialize, Serialize};
2
3use crate::{items::ItemId, Endpoint, FixedEndpoint};
4
5#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
6pub struct DeliveryItem {
7 pub id: ItemId,
8 pub count: u32,
9}
10
11#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
12pub struct Delivery {
13 pub coins: u32,
14 pub items: Vec<DeliveryItem>,
15}
16
17impl Endpoint for Delivery {
18 const AUTHENTICATED: bool = true;
19 const LOCALE: bool = false;
20 const URL: &'static str = "v2/commerce/delivery";
21 const VERSION: &'static str = "2023-07-01T00:00:00.000Z";
22}
23
24impl FixedEndpoint for Delivery {}