pub struct RsPixel {
pub config: Config,
/* private fields */
}Fields
config: ConfigImplementations
sourceimpl 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 async fn simple_get(&mut self, path: &str) -> Result<Value, Error>
pub async fn get(&mut self, path: &str, params: Value) -> Result<Value, Error>
pub async fn get_key(&mut self) -> Result<KeyResponse, Error>
pub async fn get_boosters(&mut self) -> Result<BoostersResponse, Error>
pub async fn get_leaderboards(&mut self) -> Result<LeaderboardsResponse, Error>
pub async fn get_punishment_stats(
&mut self
) -> Result<PunishmentStatsResponse, Error>
pub async fn get_player_by_uuid(
&mut self,
uuid: &str
) -> Result<PlayerResponse, Error>
pub async fn get_player_by_username(
&mut self,
username: &str
) -> Result<PlayerResponse, Error>
pub async fn get_friends(&mut self, uuid: &str) -> Result<FriendsResponse, Error>
pub async fn get_guild_by_player(
&mut self,
uuid: &str
) -> Result<GuildResponse, Error>
pub async fn get_guild_by_name(
&mut self,
name: &str
) -> Result<GuildResponse, Error>
pub async fn get_guild_by_id(&mut self, id: &str) -> Result<GuildResponse, Error>
pub async fn get_counts(&mut self) -> Result<CountsResponse, Error>
pub async fn get_status(&mut self, uuid: &str) -> Result<StatusResponse, Error>
pub async fn get_recent_games(
&mut self,
uuid: &str
) -> Result<RecentGamesResponse, Error>
pub async fn get_skyblock_profiles_by_uuid(
&mut self,
uuid: &str
) -> Result<SkyblockProfilesResponse, Error>
pub async fn get_skyblock_profiles_by_name(
&mut self,
username: &str
) -> Result<SkyblockProfilesResponse, Error>
pub async fn get_skyblock_profile(
&mut self,
profile: &str
) -> Result<SkyblockProfileResponse, Error>
pub async fn get_skyblock_bingo(
&mut self,
uuid: &str
) -> Result<SkyblockBingoResponse, Error>
pub async fn get_skyblock_news(&mut self) -> Result<SkyblockNewsResponse, Error>
pub async fn get_skyblock_auctions(
&mut self,
page: i64
) -> Result<SkyblockAuctionsResponse, Error>
pub async fn get_skyblock_ended_auctions(
&mut self
) -> Result<SkyblockEndedAuctionsResponse, Error>
pub async fn get_skyblock_bazaar(
&mut self
) -> Result<SkyblockBazaarResponse, Error>
pub async fn get_skyblock_fire_sales(
&mut self
) -> Result<SkyblockFireSalesResponse, Error>
pub async fn get_resource(&mut self, resource: &str) -> Result<Value, Error>
Auto Trait Implementations
impl !RefUnwindSafe for RsPixel
impl Send for RsPixel
impl Sync for RsPixel
impl Unpin for RsPixel
impl !UnwindSafe for RsPixel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more