Struct Card

Source
pub struct Card {
Show 81 fields pub all_parts: Option<Vec<RelatedCard>>, pub arena_id: Option<i32>, pub artist: Option<String>, pub artist_ids: Vec<Uuid>, pub booster: bool, pub border_color: String, pub card_back_id: Option<Uuid>, pub card_faces: Option<Vec<CardFace>>, pub cardmarket_id: Option<i32>, pub cmc: f64, pub collector_number: String, pub color_identity: Vec<ColorSymbol>, pub color_indicator: Option<Vec<ColorSymbol>>, pub colors: Option<Vec<ColorSymbol>>, pub content_warning: Option<bool>, pub digital: bool, pub edhrec_rank: Option<i64>, pub finishes: Vec<CardFinish>, pub flavor_name: Option<String>, pub flavor_text: Option<String>, pub foil: bool, pub frame: String, pub full_art: bool, pub games: Vec<GameKind>, pub hand_modifier: Option<String>, pub highres_image: bool, pub id: Uuid, pub illustration_id: Option<Uuid>, pub image_status: ImageStatus, pub image_uris: Option<ImageUris>, pub keywords: Vec<String>, pub kind: ResourceKind, pub lang: String, pub layout: Layout, pub legalities: Legalities, pub life_modifier: Option<String>, pub loyalty: Option<String>, pub mana_cost: Option<String>, pub mtgo_id: Option<i32>, pub mtgo_foil_id: Option<i32>, pub multiverse_ids: Option<Vec<i32>>, pub name: String, pub nonfoil: bool, pub oracle_id: Uuid, pub oracle_text: Option<String>, pub oversized: bool, pub penny_rank: Option<i64>, pub power: Option<String>, pub prices: Prices, pub printed_name: Option<String>, pub printed_text: Option<String>, pub printed_type_line: Option<String>, pub prints_search_uri: Url, pub produced_mana: Option<Vec<ColorSymbol>>, pub promo: bool, pub promo_types: Option<Vec<String>>, pub purchase_uris: Option<PurchaseUris>, pub rarity: Rarity, pub related_uris: Option<RelatedUris>, pub released_at: Date, pub reprint: bool, pub reserved: bool, pub rulings_uri: Url, pub scryfall_set_uri: Url, pub scryfall_uri: Url, pub security_stamp: Option<String>, pub set: String, pub set_id: String, pub set_name: String, pub set_search_uri: Url, pub set_type: String, pub set_uri: Url, pub story_spotlight: bool, pub tcgplayer_id: Option<i32>, pub tcgplayer_etched_id: Option<i32>, pub textless: bool, pub toughness: Option<String>, pub type_line: String, pub uri: Url, pub variation: bool, pub variation_of: Option<Uuid>,
}
Expand description

Basic struct representing a card

Fields§

§all_parts: Option<Vec<RelatedCard>>§arena_id: Option<i32>§artist: Option<String>§artist_ids: Vec<Uuid>§booster: bool§border_color: String§card_back_id: Option<Uuid>§card_faces: Option<Vec<CardFace>>§cardmarket_id: Option<i32>§cmc: f64§collector_number: String§color_identity: Vec<ColorSymbol>§color_indicator: Option<Vec<ColorSymbol>>§colors: Option<Vec<ColorSymbol>>§content_warning: Option<bool>§digital: bool§edhrec_rank: Option<i64>§finishes: Vec<CardFinish>§flavor_name: Option<String>§flavor_text: Option<String>§foil: bool§frame: String§full_art: bool§games: Vec<GameKind>§hand_modifier: Option<String>§highres_image: bool§id: Uuid§illustration_id: Option<Uuid>§image_status: ImageStatus§image_uris: Option<ImageUris>§keywords: Vec<String>§kind: ResourceKind§lang: String§layout: Layout§legalities: Legalities§life_modifier: Option<String>§loyalty: Option<String>§mana_cost: Option<String>§mtgo_id: Option<i32>§mtgo_foil_id: Option<i32>§multiverse_ids: Option<Vec<i32>>§name: String§nonfoil: bool§oracle_id: Uuid§oracle_text: Option<String>§oversized: bool§penny_rank: Option<i64>§power: Option<String>§prices: Prices§printed_name: Option<String>§printed_text: Option<String>§printed_type_line: Option<String>§prints_search_uri: Url§produced_mana: Option<Vec<ColorSymbol>>§promo: bool§promo_types: Option<Vec<String>>§purchase_uris: Option<PurchaseUris>§rarity: Rarity§related_uris: Option<RelatedUris>§released_at: Date§reprint: bool§reserved: bool§rulings_uri: Url§scryfall_set_uri: Url§scryfall_uri: Url§security_stamp: Option<String>§set: String§set_id: String§set_name: String§set_search_uri: Url§set_type: String§set_uri: Url§story_spotlight: bool§tcgplayer_id: Option<i32>§tcgplayer_etched_id: Option<i32>§textless: bool§toughness: Option<String>§type_line: String§uri: Url§variation: bool§variation_of: Option<Uuid>

Trait Implementations§

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<'a> HttpResource<Card> for CardResource<'a>

Source§

fn path(&self) -> String

Defines the path for the endpoint Read more
Source§

fn method(&self) -> Method

Defines the HTTP method for the endpoint
Source§

fn json(&self) -> Option<String>

Defines the (optional) json body when requesting the endpoint. Read more
Source§

fn path_without_query(&self) -> String

Strips the query parameters (if any) from the endpoint path Read more
Source§

impl PartialEq for Card

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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
Source§

impl StructuralPartialEq for Card

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,