[−][src]Struct scryfall::catalog::Catalog
Fields
uri: URI<Catalog>
data: Vec<String>
Methods
impl Catalog
[src]
pub fn card_names() -> Result<Self>
[src]
Returns a list of all nontoken English card names in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::card_names().unwrap().data.len() > 0)
pub fn artist_names() -> Result<Self>
[src]
Returns a list of all canonical artist names in Scryfall’s database. This catalog won’t include duplicate, misspelled, or funny names for artists. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::artist_names().unwrap().data.len() > 0)
pub fn word_bank() -> Result<Self>
[src]
Returns a Catalog of all English words, of length 2 or more, that could appear in a card name. Values are drawn from cards currently in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::word_bank().unwrap().data.len() > 0)
pub fn creature_types() -> Result<Self>
[src]
Returns a Catalog of all creature types in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::creature_types().unwrap().data.len() > 0)
pub fn planeswalker_types() -> Result<Self>
[src]
Returns a Catalog of all Planeswalker types in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::planeswalker_types().unwrap().data.len() > 0)
pub fn land_types() -> Result<Self>
[src]
Returns a Catalog of all Land types in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::land_types().unwrap().data.len() > 0)
pub fn artifact_types() -> Result<Self>
[src]
Returns a Catalog of all artifact types in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::artifact_types().unwrap().data.len() > 0)
pub fn enchantment_types() -> Result<Self>
[src]
Returns a Catalog of all enchantment types in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::enchantment_types().unwrap().data.len() > 0)
pub fn spell_types() -> Result<Self>
[src]
Returns a Catalog of all spell types in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::spell_types().unwrap().data.len() > 0)
pub fn powers() -> Result<Self>
[src]
Returns a Catalog of all possible values for a creature or vehicle’s power in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::powers().unwrap().data.len() > 0)
pub fn toughnesses() -> Result<Self>
[src]
Returns a Catalog of all possible values for a creature or vehicle’s toughness in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::toughnesses().unwrap().data.len() > 0)
pub fn loyalties() -> Result<Self>
[src]
Returns a Catalog of all possible values for a Planeswalker’s loyalty in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::loyalties().unwrap().data.len() > 0)
pub fn watermarks() -> Result<Self>
[src]
Returns a Catalog of all card watermarks in Scryfall’s database. Values are updated as soon as a new card is entered for spoiler seasons.
Examples
use scryfall::catalog::Catalog; assert!(Catalog::watermarks().unwrap().data.len() > 0)
Trait Implementations
impl Clone for Catalog
[src]
fn clone(&self) -> Catalog
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for Catalog
[src]
fn cmp(&self, other: &Catalog) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl PartialOrd<Catalog> for Catalog
[src]
fn partial_cmp(&self, other: &Catalog) -> Option<Ordering>
[src]
fn lt(&self, other: &Catalog) -> bool
[src]
fn le(&self, other: &Catalog) -> bool
[src]
fn gt(&self, other: &Catalog) -> bool
[src]
fn ge(&self, other: &Catalog) -> bool
[src]
impl PartialEq<Catalog> for Catalog
[src]
impl Eq for Catalog
[src]
impl Debug for Catalog
[src]
impl Hash for Catalog
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Catalog
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Catalog
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for Catalog
impl Sync for Catalog
impl Send for Catalog
impl UnwindSafe for Catalog
impl RefUnwindSafe for Catalog
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,