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

/// Describes a list of rulings for a Card.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Ruling {
    /// The release date in ISO 8601 format for the rule.
    pub date: Option<NaiveDate>,

    /// The text ruling of the card.
    pub text: Option<String>,
}