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 chrono::NaiveDate;
use semver::Version;
use serde::{Deserialize, Serialize};

/// Describes MTGJSON metadata.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Meta {
    /// The current release date in ISO 8601 format for the MTGJSON build.
    pub date: NaiveDate,

    /// The current SemVer version for the MTGJSON build appended with the build date.
    pub version: Version,
}