Set

Struct Set 

Source
pub struct Set {
Show 29 fields pub base_set_size: usize, pub block: Option<String>, pub booster: Option<Booster>, pub cards: Vec<SetCard>, pub cardsphere_set_id: Option<u32>, pub code: String, pub code_v3: Option<String>, pub decks: Option<Vec<DeckSet>>, pub is_foreign_only: Option<bool>, pub is_foil_only: bool, pub is_non_foil_only: Option<bool>, pub is_online_only: bool, pub is_paper_only: Option<bool>, pub is_partial_preview: Option<bool>, pub keyrune_code: String, pub languages: Option<Vec<Language>>, pub mcm_id: Option<u32>, pub mcm_id_extras: Option<u32>, pub mcm_name: Option<String>, pub mtgo_code: Option<String>, pub name: String, pub parent_code: Option<String>, pub release_date: NaiveDate, pub sealed_product: Option<Vec<SealedProduct>>, pub tcgplayer_group_id: Option<u32>, pub tokens: Vec<TokenCard>, pub total_set_size: usize, pub translations: HashMap<Language, Option<String>>, pub set_type: String,
}
Expand description

Describes the properties and values of an individual Set.

Fields§

§base_set_size: usize

The number of cards in the set. This will default to total_set_size if not available. Wizards of the Coast sometimes prints extra cards beyond the set size into promos or supplemental products.

§block: Option<String>

The block name the set was in.

§booster: Option<Booster>

A breakdown of possibilities and weights of cards in a booster pack.

§cards: Vec<SetCard>

The list of cards in the set.

§cardsphere_set_id: Option<u32>

The Cardsphere set identifier.

§code: String

The set code for the set.

§code_v3: Option<String>

The alternate set code Wizards of the Coast uses for a select few duel deck sets.

§decks: Option<Vec<DeckSet>>

All decks associated to the set.

§is_foreign_only: Option<bool>

If the set is available only outside the United States of America.

§is_foil_only: bool

If the set is only available in foil.

§is_non_foil_only: Option<bool>

If the set is only available in non-foil.

§is_online_only: bool

If the set is only available in online game variations.

§is_paper_only: Option<bool>

If the set is available only in paper.

§is_partial_preview: Option<bool>

If the set is still in preview (spoiled). Preview sets do not have complete data.

§keyrune_code: String

The matching Keyrune code for set image icons.

§languages: Option<Vec<Language>>

The languages the set was printed in.

§mcm_id: Option<u32>

The Magic Card Market set identifier.

§mcm_id_extras: Option<u32>

The split Magic Card Market set identifier if a set is printed in two sets. This identifier represents the second set’s identifier.

§mcm_name: Option<String>

The Magic Card Market set name.

§mtgo_code: Option<String>

The set code for the set as it appears on Magic: The Gathering Online.

§name: String

The name of the set.

§parent_code: Option<String>

The parent set code for set variations like promotions, guild kits, etc.

§release_date: NaiveDate

The release date in ISO 8601 format for the set.

§sealed_product: Option<Vec<SealedProduct>>

The sealed product information for the set.

§tcgplayer_group_id: Option<u32>

The group identifier of the set on TCGplayer.

§tokens: Vec<TokenCard>

The tokens available to the set.

§total_set_size: usize

The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications - however those cards are included in the set itself.

§translations: HashMap<Language, Option<String>>

The translated set name by language.

§set_type: String

The expansion type of the set.

Trait Implementations§

Source§

impl Clone for Set

Source§

fn clone(&self) -> Set

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 Set

Source§

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

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

impl<'de> Deserialize<'de> for Set

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 Set

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§

§

impl Freeze for Set

§

impl RefUnwindSafe for Set

§

impl Send for Set

§

impl Sync for Set

§

impl Unpin for Set

§

impl UnwindSafe for Set

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>,