Card

Struct Card 

Source
pub struct Card {
Show 69 fields pub object: String, pub id: String, pub oracle_id: String, pub multiverse_ids: Option<ArrayVec<u64, 8>>, pub mtgo_id: Option<u64>, pub arena_id: Option<u64>, pub tcgplayer_id: Option<u64>, pub cardmarket_id: Option<u64>, pub name: String, pub lang: String, pub released_at: String, pub uri: String, pub scryfall_uri: String, pub layout: String, pub highres_image: bool, pub image_status: String, pub image_uris: Option<ImageUris>, pub mana_cost: Option<String>, pub cmc: f64, pub type_line: String, pub oracle_text: Option<String>, pub power: Option<String>, pub toughness: Option<String>, pub colors: Option<ArrayVec<String, 5>>, pub color_identity: ArrayVec<String, 5>, pub keywords: ArrayVec<String, 16>, pub produced_mana: Option<ArrayVec<String, 8>>, pub loyalty: Option<String>, pub legalities: Legalities, pub games: ArrayVec<String, 8>, pub reserved: bool, pub game_changer: Option<bool>, pub foil: bool, pub nonfoil: bool, pub finishes: ArrayVec<String, 8>, pub oversized: bool, pub promo: bool, pub reprint: bool, pub variation: bool, pub set_id: String, pub set: String, pub set_name: String, pub set_type: String, pub set_uri: String, pub set_search_uri: String, pub scryfall_set_uri: String, pub rulings_uri: String, pub prints_search_uri: String, pub collector_number: String, pub digital: bool, pub rarity: String, pub card_back_id: Option<String>, pub artist: String, pub artist_ids: Option<ArrayVec<String, 8>>, pub illustration_id: Option<String>, pub border_color: String, pub frame: String, pub frame_effects: Option<ArrayVec<String, 8>>, pub security_stamp: Option<String>, pub full_art: bool, pub textless: bool, pub booster: bool, pub story_spotlight: bool, pub edhrec_rank: Option<u64>, pub penny_rank: Option<u64>, pub preview: Option<Preview>, pub prices: Prices, pub related_uris: RelatedUris, pub purchase_uris: Option<PurchaseUris>,
}

Fields§

§object: String§id: String§oracle_id: String§multiverse_ids: Option<ArrayVec<u64, 8>>§mtgo_id: Option<u64>§arena_id: Option<u64>§tcgplayer_id: Option<u64>§cardmarket_id: Option<u64>§name: String§lang: String§released_at: String§uri: String§scryfall_uri: String§layout: String§highres_image: bool§image_status: String§image_uris: Option<ImageUris>§mana_cost: Option<String>§cmc: f64§type_line: String§oracle_text: Option<String>§power: Option<String>§toughness: Option<String>§colors: Option<ArrayVec<String, 5>>§color_identity: ArrayVec<String, 5>§keywords: ArrayVec<String, 16>§produced_mana: Option<ArrayVec<String, 8>>§loyalty: Option<String>§legalities: Legalities§games: ArrayVec<String, 8>§reserved: bool§game_changer: Option<bool>§foil: bool§nonfoil: bool§finishes: ArrayVec<String, 8>§oversized: bool§promo: bool§reprint: bool§variation: bool§set_id: String§set: String§set_name: String§set_type: String§set_uri: String§set_search_uri: String§scryfall_set_uri: String§rulings_uri: String§prints_search_uri: String§collector_number: String§digital: bool§rarity: String§card_back_id: Option<String>§artist: String§artist_ids: Option<ArrayVec<String, 8>>§illustration_id: Option<String>§border_color: String§frame: String§frame_effects: Option<ArrayVec<String, 8>>§security_stamp: Option<String>§full_art: bool§textless: bool§booster: bool§story_spotlight: bool§edhrec_rank: Option<u64>§penny_rank: Option<u64>§preview: Option<Preview>§prices: Prices§related_uris: RelatedUris§purchase_uris: Option<PurchaseUris>

Trait Implementations§

Source§

impl Clone for Card

Source§

fn clone(&self) -> Card

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 Card

Source§

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

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

impl<'de> Deserialize<'de> for Card

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 Card

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 Card

§

impl RefUnwindSafe for Card

§

impl Send for Card

§

impl Sync for Card

§

impl Unpin for Card

§

impl UnwindSafe for Card

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