scruffy/ruling
A type describing Scryfall’s Ruling object, an official ruling on how a card’s rules text works.
See https://scryfall.com/docs/api/rulings for the upstream reference.
Types
An official ruling clarifying how a card works.
pub type Ruling {
Ruling(
oracle_id: String,
source: RulingSource,
published_at: Int,
comment: String,
)
}
Constructors
-
Ruling( oracle_id: String, source: RulingSource, published_at: Int, comment: String, )
Who issued a ruling.
pub type RulingSource {
Wotc
Scryfall
}
Constructors
-
Wotc -
Scryfall
Values
pub fn ruling_schema() -> glon.JsonSchema(Ruling)
pub fn ruling_source_schema() -> glon.JsonSchema(RulingSource)