[−][src]Struct mtgapi_client::api::set::set_api::SetApi
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]
&'_ self,
filter: SetFilter
) -> Result<ApiResponse<Vec<SetDetail>>, Error>
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]
&'_ self,
code: T
) -> Result<ApiResponse<SetDetail>, Error> where
T: Into<&'a str>,
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]
&'_ self,
code: T
) -> Result<ApiResponse<Vec<CardDetail>>, Error> where
T: Into<&'a str>,
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]
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>,