SetCard

Struct SetCard 

Source
pub struct SetCard {
Show 82 fields pub artist: Option<String>, pub artist_ids: Option<Vec<String>>, pub ascii_name: Option<String>, pub attraction_lights: Option<Vec<u8>>, pub availability: Vec<Availability>, pub booster_types: Option<Vec<BoosterType>>, pub border_color: BorderColor, 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: f32, pub duel_deck: Option<DuelDeck>, pub edhrec_rank: Option<u32>, pub face_converted_mana_cost: Option<f32>, pub face_flavor_name: Option<String>, pub face_mana_value: Option<f32>, pub face_name: Option<String>, pub finishes: Vec<Finish>, pub flavor_name: Option<String>, pub flavor_text: Option<String>, pub foreign_data: Vec<ForeignData>, pub frame_effects: Option<Vec<FrameEffect>>, pub frame_version: FrameVersion, pub hand: Option<String>, pub has_alternative_deck_limit: Option<bool>, pub has_content_warning: Option<bool>, pub has_foil: bool, pub has_non_foil: bool, pub identifiers: Identifiers, pub is_alternative: Option<bool>, pub is_full_art: Option<bool>, pub is_funny: Option<bool>, pub is_online_only: Option<bool>, pub is_oversized: Option<bool>, pub is_promo: Option<bool>, pub is_rebalanced: Option<bool>, pub is_reprint: Option<bool>, pub is_reserved: Option<bool>, pub is_starter: Option<bool>, pub is_story_spotlight: Option<bool>, pub is_textless: Option<bool>, pub is_timeshifted: Option<bool>, pub keywords: Option<Vec<String>>, pub language: Language, 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: f32, pub name: String, pub number: String, pub original_printings: Option<Vec<Uuid>>, pub original_release_date: Option<NaiveDate>, pub original_text: Option<String>, pub original_type: Option<String>, pub other_face_ids: Option<Vec<Uuid>>, pub power: Option<String>, pub printings: Option<Vec<String>>, pub promo_types: Option<Vec<PromoType>>, pub purchase_urls: PurchaseUrls, pub rarity: Rarity, pub rebalanced_printings: Option<Vec<Uuid>>, pub related_cards: Option<RelatedCards>, pub reverse_related: Option<Vec<String>>, pub rulings: Option<Vec<Ruling>>, pub security_stamp: Option<SecurityStamp>, pub set_code: String, pub side: Option<Side>, pub signature: Option<String>, pub subset: Option<Vec<String>>, 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>, pub uuid: Uuid, pub variations: Vec<Uuid>, pub watermark: Option<String>,
}
Expand description

Represents a card printed in a set.

Fields§

§artist: Option<String>

The name of the artist that illustrated the card art.

§artist_ids: Option<Vec<String>>

A list of identifiers for the artists that illustrated the card art.

§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.

§availability: Vec<Availability>

A list of the card’s available printing types.

§booster_types: Option<Vec<BoosterType>>

A list of types this card is in a booster pack.

§border_color: BorderColor

The color of the card border.

§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: f32
👎Deprecated since 5.2.0: Will be removed in 6.0.0

The converted mana cost of the card. Use the mana_value property.

§duel_deck: Option<DuelDeck>

The duel deck this card was included in.

§edhrec_rank: Option<u32>

The card rank on EDHRec.

§face_converted_mana_cost: Option<f32>
👎Deprecated since 5.2.0: Will be removed in 6.0.0

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_flavor_name: Option<String>

The flavor name on the face of the card.

§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.

§finishes: Vec<Finish>

The finishes of the card.

§flavor_name: Option<String>

The promotional card name printed above the true card name on special cards that has no game function.

§flavor_text: Option<String>

The italicized text found below the rules text that has no game function.

§foreign_data: Vec<ForeignData>

A list of data properties in other languages.

§frame_effects: Option<Vec<FrameEffect>>

The visual frame effects.

§frame_version: FrameVersion

The version of the card frame style.

§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.

§has_content_warning: Option<bool>

If the card marked by Wizards of the Coast for having sensitive content. Cards with this property may have missing or degraded properties and values.

§has_foil: bool
👎Deprecated since 5.2.0: Will be removed in 5.3.0

If the card can be found in foil. Use the finishes property.

§has_non_foil: bool
👎Deprecated since 5.2.0: Will be removed in 5.3.0

If the card can be found in non-foil. Use the finishes property.

§identifiers: Identifiers

A list of identifiers associated to a card.

§is_alternative: Option<bool>

If the card is an alternate variation to an original printing.

§is_full_art: Option<bool>

If the card has full artwork.

§is_funny: Option<bool>

If the card is part of a funny set.

§is_online_only: Option<bool>

If the card is only available in online game variations.

§is_oversized: Option<bool>

If the card is oversized.

§is_promo: Option<bool>

If the card is a promotional printing.

§is_rebalanced: Option<bool>

If the card is rebalanced for the Alchemy play format.

§is_reprint: Option<bool>

If the card has been reprinted.

§is_reserved: Option<bool>

If the card is on the Magic: The Gathering Reserved List.

§is_starter: Option<bool>
👎Deprecated since 5.2.1: Will be removed in 5.3.0

If the card is found in a starter deck such as Planeswalker/Brawl decks.

§is_story_spotlight: Option<bool>

If the card is a Story Spotlight card.

§is_textless: Option<bool>

If the card does not have a text box.

§is_timeshifted: Option<bool>

If the card is “timeshifted”, a feature of certain sets where a card will have a different frame_version.

§keywords: Option<Vec<String>>

A list of keywords found on the card.

§language: Language

The language the card is printed in.

§layout: Layout

The 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: Legalities

A 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: f32

The mana value of the card. Formally known as “converted mana cost”.

§name: String

The name of the card. Cards with multiple faces, like “Split” and “Meld” cards are given a delimiter.

§number: String

The number of the card. Can be prefixed or suffixed with a * or other characters for promotional sets.

§original_printings: Option<Vec<Uuid>>

A list of card UUID’s to original printings of the card if this card is somehow different from its original, such as rebalanced cards.

§original_release_date: Option<NaiveDate>

The original release date in ISO 8601 format for a promotional card printed outside of a cycle window, such as Secret Lair Drop promotions.

§original_text: Option<String>

The text on the card as originally printed.

§original_type: Option<String>

The type of the card as originally printed. Includes any supertypes and subtypes.

§other_face_ids: Option<Vec<Uuid>>

A list of card UUID’s to this card’s counterparts, such as transformed or melded faces.

§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.

§promo_types: Option<Vec<PromoType>>

A list of promotional types for a card.

§purchase_urls: PurchaseUrls

Links that navigate to websites where the card can be purchased.

§rarity: Rarity

The card printing rarity. Rarity bonus relates to cards that have an alternate availability in booster packs, while special relates to “Timeshifted” cards.

§rebalanced_printings: Option<Vec<Uuid>>

Rebalanced digital printings.

§related_cards: Option<RelatedCards>

Related cards.

§reverse_related: Option<Vec<String>>

Reverse related cards.

§rulings: Option<Vec<Ruling>>

The official rulings of the card.

§security_stamp: Option<SecurityStamp>

The security stamp printed on the card.

§set_code: String

The set printing code that the card is from.

§side: Option<Side>

The identifier of the card side. Used on cards with multiple faces on the same card.

§signature: Option<String>

The name of the signature on the card.

§subset: Option<Vec<String>>

The subset of the 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: String

The 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.

§uuid: Uuid

The universal unique identifier (v5) generated by MTGJSON. Each entry is unique.

§variations: Vec<Uuid>

A list of card UUID’s of this card with alternate printings in the same set. Excludes Un‑sets.

§watermark: Option<String>

The name of the watermark on the card.

Trait Implementations§

Source§

impl Clone for SetCard

Source§

fn clone(&self) -> SetCard

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SetCard

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SetCard

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SetCard

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,