Struct mtgapi_client::api::card::card_api::AllCardsRequest[][src]

pub struct AllCardsRequest { /* fields omitted */ }

Request Object to be used to execute requests to the API

Methods

impl AllCardsRequest
[src]

Executes the call to the API. Repeated calls to this method will return the different pages of the cards API

let sdk = MtgClient::new(60);
let mut get_cards_request = sdk.cards().all();
let mut cards = Vec::new();
loop {
    let response = get_cards_request.next_page()?;
    if response.content.is_empty() {break}
    cards.extend(response.content);
}

Errors

If this function can't connect to the API or does not manage to read the response, it will return an error.

Sets the ordering of the cards

Sets the page for the following API calls

Sets the page size for the following API calls

Auto Trait Implementations