Enum scryfall::search::param::criteria::PrintingIs

source ·
pub enum PrintingIs {
Show 19 variants NewCard, NewRarity, NewArt, NewArtist, NewFlavor, NewFrame, NewLanguage, Watermark, Full, Nonfoil, Foil, HiRes, Digital, Promo, Spotlight, Masterpiece, Unique, FirstPrint, Reprint,
}
Expand description

A search criterion applying to a specific printing of a card. These criteria have to do with art, frames, foil, and reprints, and other things that are not true for every printing of a card, including FirstPrint, Watermark, and NewArt.

PrintingIs implements Into<Query>, so it can be used as an argument to boolean methods such as not and Query::and().

§Example

// Find a card with new artwork by an artist that has illustrated the card before.
let artist_redo = not(PrintingIs::NewArtist)
    .and(PrintingIs::NewArt)
    .random()
    .await?;

// There should be at least 2 unique artworks of this card by this artist.
let all_versions = SearchOptions::new()
    .query(
        exact(artist_redo.name.as_str())
            .and(artist(artist_redo.artist.as_ref().unwrap().as_str())),
    )
    .unique(UniqueStrategy::Art)
    .search_all()
    .await?;
assert!(all_versions.len() >= 2);

Variants§

§

NewCard

Find printings that are printed for the first time in paper.

§

NewRarity

Find printings using a new rarity (including the first print).

§

NewArt

Find printings with new artwork (including the first print).

§

NewArtist

Find printings with an artist who has not illustrated this card before (including the first print).

§

NewFlavor

Find printings with new flavor text (including the first print).

§

NewFrame

Find printings with a new frame (including the first print).

§

NewLanguage

Find printings available for the first time in a new language (including the first print).

§

Watermark

Find printings that have a watermark.

§

Full

Find printings with full art.

§

Nonfoil

Find printings that are available in non-foil.

§

Foil

Find printings that are available in foil.

§

HiRes

Find printings in Scryfall’s database with high-resolution images.

§

Digital

Find printings that are only available digitally (MTGO and Arena).

§

Promo

Find promotional printings.

§

Spotlight

Find printings that are Story Spotlights in their set.

§

Masterpiece

Find printings that are in the Masterpiece Series.

§

Unique

Find printings that have only been in a single set.

§

FirstPrint

Find first printings (digital or paper).

§

Reprint

Find reprints.

Trait Implementations§

source§

impl Clone for PrintingIs

source§

fn clone(&self) -> PrintingIs

Returns a copy 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 PrintingIs

source§

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

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

impl Display for PrintingIs

source§

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

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

impl From<PrintingIs> for Query

source§

fn from(printing: PrintingIs) -> Self

Converts to this type from the input type.
source§

impl Hash for PrintingIs

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for PrintingIs

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for PrintingIs

source§

impl Eq for PrintingIs

source§

impl StructuralPartialEq for PrintingIs

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> ToOwned for T
where T: Clone,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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

§

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