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
impl Clone for PrintingIs
source§fn clone(&self) -> PrintingIs
fn clone(&self) -> PrintingIs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PrintingIs
impl Debug for PrintingIs
source§impl Display for PrintingIs
impl Display for PrintingIs
source§impl From<PrintingIs> for Query
impl From<PrintingIs> for Query
source§fn from(printing: PrintingIs) -> Self
fn from(printing: PrintingIs) -> Self
source§impl Hash for PrintingIs
impl Hash for PrintingIs
source§impl PartialEq for PrintingIs
impl PartialEq for PrintingIs
source§fn eq(&self, other: &PrintingIs) -> bool
fn eq(&self, other: &PrintingIs) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for PrintingIs
impl Eq for PrintingIs
impl StructuralPartialEq for PrintingIs
Auto Trait Implementations§
impl Freeze for PrintingIs
impl RefUnwindSafe for PrintingIs
impl Send for PrintingIs
impl Sync for PrintingIs
impl Unpin for PrintingIs
impl UnwindSafe for PrintingIs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.