pub struct AtomicCard {Show 37 fields
pub ascii_name: Option<String>,
pub attraction_lights: Option<Vec<u8>>,
pub card_parts: Option<Vec<String>>,
pub color_identity: Vec<Color>,
pub color_indicator: Option<Vec<Color>>,
pub colors: Vec<Color>,
pub converted_mana_cost: Option<f32>,
pub edhrec_rank: Option<u32>,
pub face_converted_mana_cost: Option<f32>,
pub face_mana_value: Option<f32>,
pub face_name: Option<String>,
pub foreign_data: Vec<ForeignData>,
pub hand: Option<String>,
pub has_alternative_deck_limit: Option<bool>,
pub identifiers: Identifiers,
pub is_funny: Option<bool>,
pub is_reserved: Option<bool>,
pub keywords: Option<Vec<String>>,
pub layout: Layout,
pub leadership_skills: Option<LeadershipSkills>,
pub legalities: Legalities,
pub life: Option<String>,
pub loyalty: Option<String>,
pub mana_cost: Option<String>,
pub mana_value: Option<f32>,
pub name: String,
pub power: Option<String>,
pub printings: Option<Vec<String>>,
pub purchase_urls: PurchaseUrls,
pub rulings: Option<Vec<Ruling>>,
pub side: Option<Side>,
pub subtypes: Vec<String>,
pub supertypes: Vec<String>,
pub text: Option<String>,
pub toughness: Option<String>,
pub card_type: String,
pub card_types: Vec<String>,
}Expand description
Represents a unique card, not specific to any one printing.
Fields§
§ascii_name: Option<String>The ASCII (Basic/128) code formatted card name with no special unicode characters.
attraction_lights: Option<Vec<u8>>The attraction lights on the card.
card_parts: Option<Vec<String>>The related parts of the card.
color_identity: Vec<Color>A list of all the colors found in mana_cost, color_indicator, and text.
color_indicator: Option<Vec<Color>>A list of all the colors in the color indicator (The symbol prefixed to a card’s types).
colors: Vec<Color>A list of all the colors in mana_cost and color_indicator. Some cards may not have values, such as cards with “Devoid” in its text.
converted_mana_cost: Option<f32>The converted mana cost of the card. Use the mana_value property.
edhrec_rank: Option<u32>The card rank on EDHRec.
face_converted_mana_cost: Option<f32>The converted mana cost or mana value for the face for either half or part of the card. Use the face_mana_value property.
face_mana_value: Option<f32>The mana value of the face for either half or part of the card. Formally known as “converted mana cost”.
face_name: Option<String>The name on the face of the card.
foreign_data: Vec<ForeignData>A list of data properties in other languages.
hand: Option<String>The starting maximum hand size total modifier. A + or - character precedes an integer.
has_alternative_deck_limit: Option<bool>If the card allows a value other than 4 copies in a deck.
identifiers: IdentifiersA list of identifiers associated to a card.
is_funny: Option<bool>If the card is part of a funny set.
is_reserved: Option<bool>If the card is on the Magic: The Gathering Reserved List.
keywords: Option<Vec<String>>A list of keywords found on the card.
layout: LayoutThe type of card layout. For a token card, this will be “token”.
leadership_skills: Option<LeadershipSkills>A list of formats the card is legal to be a commander in.
legalities: LegalitiesA list of play formats the card the card is legal in.
life: Option<String>The starting life total modifier. A plus or minus character precedes an integer. Used only on cards with “Vanguard” in its types.
loyalty: Option<String>The starting loyalty value of the card. Used only on cards with “Planeswalker” in its types.
mana_cost: Option<String>The mana cost of the card wrapped in brackets for each value.
mana_value: Option<f32>The mana value of the card. Formally known as “converted mana cost”.
name: StringThe name of the card. Cards with multiple faces, like “Split” and “Meld” cards are given a delimiter.
power: Option<String>The power of the card.
printings: Option<Vec<String>>A list of set printing codes the card was printed in, formatted in uppercase.
purchase_urls: PurchaseUrlsLinks that navigate to websites where the card can be purchased.
rulings: Option<Vec<Ruling>>The official rulings of the card.
side: Option<Side>The identifier of the card side. Used on cards with multiple faces on the same card.
subtypes: Vec<String>A list of card subtypes found after em-dash.
supertypes: Vec<String>A list of card supertypes found before em-dash.
text: Option<String>The rules text of the card.
toughness: Option<String>The toughness of the card.
card_type: StringThe type of the card as visible, including any supertypes and subtypes.
card_types: Vec<String>A list of all card types of the card, including Un‑sets and gameplay variants.
Trait Implementations§
Source§impl Clone for AtomicCard
impl Clone for AtomicCard
Source§fn clone(&self) -> AtomicCard
fn clone(&self) -> AtomicCard
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more