Enum scryfall::search::advanced::UniqueStrategy
source · pub enum UniqueStrategy {
Cards,
Art,
Prints,
}
Expand description
The unique parameter specifies if Scryfall should remove “duplicate” results in your query.
Variants§
Cards
Removes duplicate gameplay objects (cards that share a name and have the same functionality). For example, if your search matches more than one print of Pacifism, only one copy of Pacifism will be returned.
Art
Returns only one copy of each unique artwork for matching cards. For example, if your search matches more than one print of Pacifism, one card with each different illustration for Pacifism will be returned, but any cards that duplicate artwork already in the results will be omitted.
Prints
Returns all prints for all cards matched (disables rollup). For example, if your search matches more than one print of Pacifism, all matching prints will be returned.
Trait Implementations§
source§impl Clone for UniqueStrategy
impl Clone for UniqueStrategy
source§fn clone(&self) -> UniqueStrategy
fn clone(&self) -> UniqueStrategy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniqueStrategy
impl Debug for UniqueStrategy
source§impl Default for UniqueStrategy
impl Default for UniqueStrategy
source§fn default() -> UniqueStrategy
fn default() -> UniqueStrategy
Returns the “default value” for a type. Read more
source§impl Hash for UniqueStrategy
impl Hash for UniqueStrategy
source§impl PartialEq for UniqueStrategy
impl PartialEq for UniqueStrategy
source§fn eq(&self, other: &UniqueStrategy) -> bool
fn eq(&self, other: &UniqueStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UniqueStrategy
impl Serialize for UniqueStrategy
impl Copy for UniqueStrategy
impl Eq for UniqueStrategy
impl StructuralPartialEq for UniqueStrategy
Auto Trait Implementations§
impl Freeze for UniqueStrategy
impl RefUnwindSafe for UniqueStrategy
impl Send for UniqueStrategy
impl Sync for UniqueStrategy
impl Unpin for UniqueStrategy
impl UnwindSafe for UniqueStrategy
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.