[][src]Struct mtgapi_client::api::set::set_api::SetApi

pub struct SetApi { /* fields omitted */ }

Responsible for the calls to the /sets endpoint

Methods

impl SetApi[src]

pub async fn all<'_>(&'_ self) -> Result<ApiResponse<Vec<SetDetail>>, Error>[src]

Returns all Sets

pub async fn all_filtered<'_>(
    &'_ self,
    filter: SetFilter
) -> Result<ApiResponse<Vec<SetDetail>>, Error>
[src]

Returns all sets matching the supplied filter

pub async fn find<'a, '_, T>(
    &'_ self,
    code: T
) -> Result<ApiResponse<SetDetail>, Error> where
    T: Into<&'a str>, 
[src]

Returns the specified set by the set code

pub async fn booster<'a, '_, T>(
    &'_ self,
    code: T
) -> Result<ApiResponse<Vec<CardDetail>>, Error> where
    T: Into<&'a str>, 
[src]

Returns a sample booster pack of cards from the specified set

Auto Trait Implementations

impl !RefUnwindSafe for SetApi

impl !Send for SetApi

impl !Sync for SetApi

impl Unpin for SetApi

impl !UnwindSafe for SetApi

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.