Module scryfall::card

source ·
Expand description

This module provides a definition of a Magic: The Gathering card, as well as, ways to fetch them from scryfall.

All the card’s fields are public and identical in name to the ones documented in the official scryfall page.

Structs§

  • Card objects represent individual Magic: The Gathering cards that players could obtain and add to their collection (with a few minor exceptions).
  • Multiface cards have a card_faces property containing at least two Card Face objects.
  • Definition of a cards colors. This can be used in conjunction with the search module as a ColorValue.
  • Scryfall produces multiple sizes of images and image crops for each Card object. Links to these images are available in each Card objects’ image_uris properties.
  • Multicolored card. This can be used as a ColorValue for searching Scryfall.
  • Struct describing card preview information.
  • Struct defining a price object containing data in various currencies.
  • Cards that are closely related to other cards (because they call them by name, or generate a token, or meld, etc) have a all_parts property that contains Related Card objects.

Enums§

  • Enum defining the colors a mtg card border can have.
  • Enum defining the 5 colors of magic, plus colorless.
  • The frame field tracks the major edition of the card frame of used for the re/print in question. The frame has gone though several major revisions in Magic’s lifetime.
  • The frame_effects field tracks additional frame artwork applied over a particular frame. For example, there are both 2003 and 2015-frame cards with the Nyx-touched effect.
  • Enum defining the exiting platforms on with a magic card can exist.
  • The layout property categorizes the arrangement of card parts, faces, and other bounded regions on cards. The layout can be used to programmatically determine which other properties on a card you can expect.
  • Enum describing the 4 states of legality a card can have.
  • A type of mana a card can produce
  • The rarities a card can be printed in. Aside from the usual 4 of Common, Uncommon, Rare, and Mythic, there are two additional rarities.
  • Kinds of mana only produced in unfinity