Struct mtgapi_client::api::set::set_api::SetApi [−][src]
pub struct SetApi { /* fields omitted */ }Responsible for the calls to the /sets endpoint
Methods
impl SetApi[src]
impl SetApipub fn all(&self) -> Result<ApiResponse<Vec<SetDetail>>, Error>[src]
pub fn all(&self) -> Result<ApiResponse<Vec<SetDetail>>, Error>Returns all Sets
pub fn all_filtered(
&self,
filter: SetFilter
) -> Result<ApiResponse<Vec<SetDetail>>, Error>[src]
pub fn all_filtered(
&self,
filter: SetFilter
) -> Result<ApiResponse<Vec<SetDetail>>, Error>Returns all sets matching the supplied filter
pub fn find<'a, T>(&self, code: T) -> Result<ApiResponse<SetDetail>, Error> where
T: Into<&'a str>, [src]
pub fn find<'a, T>(&self, code: T) -> Result<ApiResponse<SetDetail>, Error> where
T: Into<&'a str>, Returns the specified set by the set code
pub fn booster<'a, T>(
&self,
code: T
) -> Result<ApiResponse<Vec<CardDetail>>, Error> where
T: Into<&'a str>, [src]
pub fn booster<'a, T>(
&self,
code: T
) -> Result<ApiResponse<Vec<CardDetail>>, Error> where
T: Into<&'a str>, Returns a sample booster pack of cards from the specified set