[−][src]Struct mtgapi_client::MtgClient
The MTG.io SDK, use this to access the various api calls
Fields
cards: CardApi
sets: SetApi
types: TypeApi
subtypes: SubtypeApi
supertypes: SupertypeApi
formats: FormatApi
Methods
impl MtgClient
[src]
pub fn new(timeout: u64) -> MtgClient
[src]
Creates a new MTG.io SDK Struct
pub fn new_with_url(url: &str, timeout: u64) -> MtgClient
[src]
Creates a new MTG.io SDK Struct with an alternate URL "https://api.magicthegathering.io/v1" is the default
pub fn cards(&self) -> &CardApi
[src]
/cards enpoint
pub fn sets(&self) -> &SetApi
[src]
/sets enpoint
pub fn types(&self) -> &TypeApi
[src]
/types enpoint
pub fn subtypes(&self) -> &SubtypeApi
[src]
/subtypes enpoint
pub fn supertypes(&self) -> &SupertypeApi
[src]
/supertypes enpoint
pub fn formats(&self) -> &FormatApi
[src]
/formats enpoint
Auto Trait Implementations
impl !RefUnwindSafe for MtgClient
impl !Send for MtgClient
impl !Sync for MtgClient
impl Unpin for MtgClient
impl !UnwindSafe for MtgClient
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for 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>,