Struct scryfall::catalog::Catalog [−][src]
Fields
uri: URI<Catalog>
data: Vec<String>
Implementations
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]
impl Debug for Catalog
[src]
impl<'de> Deserialize<'de> for Catalog
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Catalog
[src]
impl Hash for Catalog
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Catalog
[src]
fn cmp(&self, other: &Catalog) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Catalog> for Catalog
[src]
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 Serialize for Catalog
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Catalog
[src]
impl StructuralPartialEq for Catalog
[src]
Auto Trait Implementations
impl RefUnwindSafe for Catalog
[src]
impl Send for Catalog
[src]
impl Sync for Catalog
[src]
impl Unpin for Catalog
[src]
impl UnwindSafe for Catalog
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,