pub struct SkyblockApi<'a> { /* private fields */ }
Implementations§
Source§impl<'a> SkyblockApi<'a>
impl<'a> SkyblockApi<'a>
Source§impl<'a> SkyblockApi<'a>
impl<'a> SkyblockApi<'a>
Sourcepub async fn iter_active_auctions<F>(&mut self, f: F) -> Result<()>
pub async fn iter_active_auctions<F>(&mut self, f: F) -> Result<()>
Helper function, allows the user to pass a function tio the API to iterate over the listings on auction right now, instead of allocating for the entire auction house and returning that to the caller.
Sourcepub async fn get_auctions_page(&mut self, page: usize) -> Result<GlobalAuctions>
pub async fn get_auctions_page(&mut self, page: usize) -> Result<GlobalAuctions>
Returns a particular page of auctions to the caller.
Source§impl<'a> SkyblockApi<'a>
impl<'a> SkyblockApi<'a>
Sourcepub async fn get_bazaar_products(&mut self) -> Result<Vec<String>>
👎Deprecated
pub async fn get_bazaar_products(&mut self) -> Result<Vec<String>>
Deprecated function to fetch a list of available Product IDs from the API.
Sourcepub async fn get_bazaar_product_listing(
&mut self,
) -> Result<HashMap<String, Product>>
pub async fn get_bazaar_product_listing( &mut self, ) -> Result<HashMap<String, Product>>
Fetch all Bazaar products and their current state.
This endpoint returns a None
in the week_historic
field.
Sourcepub async fn get_bazaar_product(&mut self, product: &str) -> Result<Product>
👎Deprecated
pub async fn get_bazaar_product(&mut self, product: &str) -> Result<Product>
Fetch a particular Bazaar product and return their current state.
Auto Trait Implementations§
impl<'a> Freeze for SkyblockApi<'a>
impl<'a> RefUnwindSafe for SkyblockApi<'a>
impl<'a> Send for SkyblockApi<'a>
impl<'a> Sync for SkyblockApi<'a>
impl<'a> Unpin for SkyblockApi<'a>
impl<'a> UnwindSafe for SkyblockApi<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more