mtgjson/sealed_product.rs
1use chrono::NaiveDate;
2use serde::{Deserialize, Serialize};
3use uuid::Uuid;
4
5use crate::{identifiers::Identifiers, purchase_urls::PurchaseUrls};
6
7/// Describes a list of properties for a purchase-able product of a Set.
8#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(rename_all = "camelCase")]
10pub struct SealedProduct {
11 /// A list of identifiers associated to a product.
12 pub identifiers: Identifiers,
13
14 /// The name of the product.
15 pub name: String,
16
17 /// Links that navigate to websites where the product can be purchased.
18 pub purchase_urls: PurchaseUrls,
19
20 /// The release date in ISO 8601 format for the product.
21 pub release_date: Option<NaiveDate>,
22
23 /// The universal unique identifier (v5) generated by MTGJSON. Each entry is unique.
24 pub uuid: Uuid,
25}