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
15
use serde::{Deserialize, Serialize};

use super::booster_info::BoosterInfo;

/// Information about an alternative booster.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct NamedBoosterInfo {
    /// Name of the premium booster pack.
    pub name: String,

    /// The normal booster info.
    #[serde(flatten)]
    pub booster_info: BoosterInfo,
}