pokemon_tcg_sdk/card/tcgplayer.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Deserialize, Serialize)]
4pub struct Prices {
5 /// The low price of the card
6 pub low: Option<f32>,
7 /// The mid price of the card
8 pub mid: Option<f32>,
9 /// The high price of the card
10 pub high: Option<f32>,
11 /// The market value of the card. This is usually the best representation of what people are willing to pay.
12 pub market: Option<f32>,
13 /// The direct low price of the card
14 #[serde(alias = "directLow")]
15 pub direct_low: Option<f32>,
16}
17
18#[derive(Debug, Clone, Deserialize, Serialize)]
19pub struct TcgPlayer {
20 /// The URL to the TCGPlayer store page to purchase this card.
21 pub url: String,
22 /// A date that the price was last updated. In the format of YYYY/MM/DD
23 #[serde(alias = "updatedAt")]
24 pub updated_at: Option<String>,
25 /// A hash of price types. All prices are in US Dollars. See below for possible values.
26 pub prices: Option<Prices>,
27}