[][src]Struct skyblock_rs::client::SkyblockApi

pub struct SkyblockApi<'a> { /* fields omitted */ }

Implementations

impl<'a> SkyblockApi<'a>[src]

pub fn pooled(keys: Vec<&str>) -> SkyblockApi[src]

pub fn singleton(key: &str) -> SkyblockApi[src]

pub async fn get<'_, '_, '_, T>(
    &'_ mut self,
    path: &'_ str,
    params: Vec<(&'_ str, String)>
) -> Result<T> where
    T: for<'de> Deserialize<'de>, 
[src]

impl<'a> SkyblockApi<'a>[src]

pub async fn iter_active_auctions<'_, F>(&'_ mut self, __arg1: F) -> Result<()> where
    F: FnMut(Auction) -> Result<()>, 
[src]

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.

pub async fn get_auctions_page<'_>(
    &'_ mut self,
    page: usize
) -> Result<GlobalAuctions>
[src]

Returns a particular page of auctions to the caller.

impl<'a> SkyblockApi<'a>[src]

pub async fn get_bazaar_products<'_>(&'_ mut self) -> Result<Vec<String>>[src]

👎 Deprecated

Deprecated function to fetch a list of available Product IDs from the API.

pub async fn get_bazaar_product_listing<'_>(
    &'_ mut self
) -> Result<HashMap<String, Product>>
[src]

Fetch all Bazaar products and their current state. This endpoint returns a None in the week_historic field.

pub async fn get_bazaar_product<'_, '_>(
    &'_ mut self,
    product: &'_ str
) -> Result<Product>
[src]

👎 Deprecated

Fetch a particular Bazaar product and return their current state.

Auto Trait Implementations

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,