mtgjson 5.2.2

Unofficially provided lightweight models of the data provided by MTGJSON.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::collections::HashMap;

use serde::{Deserialize, Serialize};

/// Booster pack configuration.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BoosterConfig {
    /// Card contents of a booster pack.
    pub contents: HashMap<String, u32>,

    /// Odds of getting this configuration against other configurations.
    pub weight: u32,
}