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

pub struct CardApi { /* fields omitted */ }

Responsible for the calls to the /cards endpoint

Methods

impl CardApi[src]

pub fn all(&self) -> Box<AllCardsRequest>[src]

Returns a Request Object to fetch all cards

pub fn all_filtered(&self, filter: CardFilter) -> Box<AllCardsRequest>[src]

Returns a Request Object to fetch all cards with a filter

pub async fn find<'_>(
    &'_ self,
    id: u32
) -> Result<ApiResponse<CardDetail>, Error>
[src]

Returns a specific card by a specific id

Auto Trait Implementations

impl !RefUnwindSafe for CardApi

impl !Send for CardApi

impl !Sync for CardApi

impl Unpin for CardApi

impl !UnwindSafe for CardApi

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.