Skip to main content

CardEdition

Struct CardEdition 

Source
pub struct CardEdition {
Show 28 fields pub code: String, pub code2: Option<String>, pub scryfall_code: Option<String>, pub name: String, pub date: Option<String>, pub edition_type: EditionType, pub foil_type: FoilType, pub foil_chance_in_booster: f64, pub foil_always_in_common_slot: bool, pub additional_sheet_for_foils: Option<String>, pub chance_replace_common_with: f64, pub slot_replace_common_with: Option<String>, pub booster_must_contain: Option<String>, pub booster_replace_slot_from_print_sheet: Option<String>, pub sheet_replace_card_from_sheet: Option<String>, pub sheet_replace_card_from_sheet2: Option<String>, pub alias: Option<String>, pub booster_covers: u32, pub booster_box_count: u32, pub fat_pack_count: u32, pub prerelease: Option<String>, pub additional_unlock_set: Option<String>, pub small_set_override: bool, pub booster: Option<String>, pub draft_booster: Option<String>, pub extra_boosters: HashMap<String, String>, pub custom_sheets: HashMap<String, Vec<String>>, pub cards: Vec<EditionEntry>,
}

Fields§

§code: String§code2: Option<String>§scryfall_code: Option<String>§name: String§date: Option<String>§edition_type: EditionType§foil_type: FoilType§foil_chance_in_booster: f64§foil_always_in_common_slot: bool§additional_sheet_for_foils: Option<String>§chance_replace_common_with: f64§slot_replace_common_with: Option<String>§booster_must_contain: Option<String>§booster_replace_slot_from_print_sheet: Option<String>§sheet_replace_card_from_sheet: Option<String>§sheet_replace_card_from_sheet2: Option<String>§alias: Option<String>§booster_covers: u32§booster_box_count: u32§fat_pack_count: u32§prerelease: Option<String>§additional_unlock_set: Option<String>§small_set_override: bool§booster: Option<String>§draft_booster: Option<String>§extra_boosters: HashMap<String, String>§custom_sheets: HashMap<String, Vec<String>>§cards: Vec<EditionEntry>

Implementations§

Trait Implementations§

Source§

impl Clone for CardEdition

Source§

fn clone(&self) -> CardEdition

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CardEdition

Source§

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

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

impl Default for CardEdition

Source§

fn default() -> CardEdition

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CardEdition

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 PartialEq for CardEdition

Source§

fn eq(&self, other: &CardEdition) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CardEdition

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

impl StructuralPartialEq for CardEdition

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V