mtgjson 5.2.2

Unofficially provided lightweight models of the data provided by MTGJSON.
Documentation
use std::collections::HashMap;

use serde::{Deserialize, Serialize};
use uuid::Uuid;

/// Sheets of cards to use within booster packs.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BoosterSheet {
    /// If the sheet can be picked for cards in duplicates.
    pub allow_duplicates: Option<bool>,

    /// Colors of the sheet need to be balanced.
    pub balance_colors: Option<bool>,

    /// Cards used on a sheet.
    pub cards: HashMap<Uuid, u64>,

    /// Whether the sheet is foiled.
    pub foil: bool,

    /// If cards are garunteed to be in this sheet. Used for "Jump Start"-style products.
    pub fixed: Option<bool>,

    /// Sum of all card weights.
    pub total_weight: u64,
}