pub struct RsPixel {
pub config: Config,
/* private fields */
}Fields§
§config: ConfigImplementations§
Source§impl RsPixel
impl RsPixel
pub async fn new(key: impl Into<String>) -> Result<RsPixel, Error>
pub async fn from_config( key: impl Into<String>, config: Config, ) -> Result<RsPixel, Error>
pub async fn username_to_uuid(&self, username: &str) -> Result<Response, Error>
pub async fn uuid_to_username(&self, uuid: &str) -> Result<Response, Error>
pub fn to_params(&self, key: &str, value: &str) -> HashMap<String, String>
pub fn is_cached(&mut self, path: &str, params: HashMap<String, String>) -> bool
pub async fn get<T>( &mut self, endpoint: HypixelEndpoint, params: HashMap<String, String>, ) -> Result<Arc<T>, Error>
pub async fn simple_get<T>( &mut self, path: HypixelEndpoint, ) -> Result<Arc<T>, Error>
pub async fn get_key(&mut self) -> Result<Arc<KeyResponse>, Error>
pub async fn get_boosters(&mut self) -> Result<Arc<BoostersResponse>, Error>
pub async fn get_leaderboards( &mut self, ) -> Result<Arc<LeaderboardsResponse>, Error>
pub async fn get_punishment_stats( &mut self, ) -> Result<Arc<PunishmentStatsResponse>, Error>
pub async fn get_player( &mut self, uuid: &str, ) -> Result<Arc<PlayerResponse>, Error>
pub async fn get_guild_by_player( &mut self, player: &str, ) -> Result<Arc<GuildResponse>, Error>
pub async fn get_guild_by_name( &mut self, name: &str, ) -> Result<Arc<GuildResponse>, Error>
pub async fn get_guild_by_id( &mut self, id: &str, ) -> Result<Arc<GuildResponse>, Error>
pub async fn get_skyblock_auction_by_uuid( &mut self, uuid: &str, ) -> Result<Arc<SkyblockAuctionResponse>, Error>
pub async fn get_skyblock_auction_by_player( &mut self, player: &str, ) -> Result<Arc<SkyblockAuctionResponse>, Error>
pub async fn get_skyblock_auction_by_profile( &mut self, profile: &str, ) -> Result<Arc<SkyblockAuctionResponse>, Error>
pub async fn get_counts(&mut self) -> Result<Arc<CountsResponse>, Error>
pub async fn get_status( &mut self, uuid: &str, ) -> Result<Arc<StatusResponse>, Error>
pub async fn get_recent_games( &mut self, uuid: &str, ) -> Result<Arc<RecentGamesResponse>, Error>
pub async fn get_skyblock_profiles( &mut self, uuid: &str, ) -> Result<Arc<SkyblockProfilesResponse>, Error>
pub async fn get_skyblock_profile( &mut self, profile: &str, ) -> Result<Arc<SkyblockProfileResponse>, Error>
pub async fn get_skyblock_bingo( &mut self, uuid: &str, ) -> Result<Arc<SkyblockBingoResponse>, Error>
pub async fn get_skyblock_news( &mut self, ) -> Result<Arc<SkyblockNewsResponse>, Error>
pub async fn get_skyblock_auctions( &mut self, page: i64, ) -> Result<Arc<SkyblockAuctionsResponse>, Error>
pub async fn get_skyblock_auctions_ended( &mut self, ) -> Result<Arc<SkyblockAuctionsEndedResponse>, Error>
pub async fn get_skyblock_bazaar( &mut self, ) -> Result<Arc<SkyblockBazaarResponse>, Error>
pub async fn get_skyblock_fire_sales( &mut self, ) -> Result<Arc<SkyblockFireSalesResponse>, Error>
pub async fn get_resources( &mut self, resource: HypixelEndpoint, ) -> Result<Arc<Value>, Error>
Auto Trait Implementations§
impl Freeze for RsPixel
impl !RefUnwindSafe for RsPixel
impl Send for RsPixel
impl Sync for RsPixel
impl Unpin for RsPixel
impl !UnwindSafe for RsPixel
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