Struct mtgapi_client::MtgClient [−][src]
pub struct MtgClient {
pub cards: CardApi,
pub sets: SetApi,
pub types: TypeApi,
pub subtypes: SubtypeApi,
pub supertypes: SupertypeApi,
pub formats: FormatApi,
// some fields omitted
}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]
impl MtgClientpub fn new(timeout: u64) -> MtgClient[src]
pub fn new(timeout: u64) -> MtgClientCreates a new MTG.io SDK Struct
pub fn cards(&self) -> &CardApi[src]
pub fn cards(&self) -> &CardApi/cards enpoint
pub fn sets(&self) -> &SetApi[src]
pub fn sets(&self) -> &SetApi/sets enpoint
pub fn types(&self) -> &TypeApi[src]
pub fn types(&self) -> &TypeApi/types enpoint
pub fn subtypes(&self) -> &SubtypeApi[src]
pub fn subtypes(&self) -> &SubtypeApi/subtypes enpoint
pub fn supertypes(&self) -> &SupertypeApi[src]
pub fn supertypes(&self) -> &SupertypeApi/supertypes enpoint
pub fn formats(&self) -> &FormatApi[src]
pub fn formats(&self) -> &FormatApi/formats enpoint