pub struct UserScope<E>(/* private fields */)
where
E: Executor;
Implementations§
Source§impl<E> UserScope<E>where
E: Executor,
impl<E> UserScope<E>where
E: Executor,
pub fn new(executor: E) -> Self
Sourcepub async fn attacks<S>(
self,
builder: impl FnOnce(UserAttacksRequestBuilder<Empty>) -> UserAttacksRequestBuilder<S>,
) -> Result<FactionAttacksResponse, E::Error>where
S: IsComplete,
pub async fn attacks<S>(
self,
builder: impl FnOnce(UserAttacksRequestBuilder<Empty>) -> UserAttacksRequestBuilder<S>,
) -> Result<FactionAttacksResponse, E::Error>where
S: IsComplete,
Sourcepub async fn attacksfull<S>(
self,
builder: impl FnOnce(UserAttacksfullRequestBuilder<Empty>) -> UserAttacksfullRequestBuilder<S>,
) -> Result<FactionAttacksFullResponse, E::Error>where
S: IsComplete,
pub async fn attacksfull<S>(
self,
builder: impl FnOnce(UserAttacksfullRequestBuilder<Empty>) -> UserAttacksfullRequestBuilder<S>,
) -> Result<FactionAttacksFullResponse, E::Error>where
S: IsComplete,
Sourcepub async fn bars<S>(
self,
builder: impl FnOnce(UserBarsRequestBuilder<Empty>) -> UserBarsRequestBuilder<S>,
) -> Result<UserBarsResponse, E::Error>where
S: IsComplete,
pub async fn bars<S>(
self,
builder: impl FnOnce(UserBarsRequestBuilder<Empty>) -> UserBarsRequestBuilder<S>,
) -> Result<UserBarsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn basic<S>(
self,
builder: impl FnOnce(UserBasicRequestBuilder<Empty>) -> UserBasicRequestBuilder<S>,
) -> Result<UserBasicResponse, E::Error>where
S: IsComplete,
pub async fn basic<S>(
self,
builder: impl FnOnce(UserBasicRequestBuilder<Empty>) -> UserBasicRequestBuilder<S>,
) -> Result<UserBasicResponse, E::Error>where
S: IsComplete,
Sourcepub async fn basic_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserBasicForIdRequestBuilder<Empty>) -> UserBasicForIdRequestBuilder<S>,
) -> Result<UserBasicResponse, E::Error>where
S: IsComplete,
pub async fn basic_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserBasicForIdRequestBuilder<Empty>) -> UserBasicForIdRequestBuilder<S>,
) -> Result<UserBasicResponse, E::Error>where
S: IsComplete,
Sourcepub async fn bounties<S>(
self,
builder: impl FnOnce(UserBountiesRequestBuilder<Empty>) -> UserBountiesRequestBuilder<S>,
) -> Result<UserBountiesResponse, E::Error>where
S: IsComplete,
pub async fn bounties<S>(
self,
builder: impl FnOnce(UserBountiesRequestBuilder<Empty>) -> UserBountiesRequestBuilder<S>,
) -> Result<UserBountiesResponse, E::Error>where
S: IsComplete,
Sourcepub async fn battlestats<S>(
self,
builder: impl FnOnce(UserBattlestatsRequestBuilder<Empty>) -> UserBattlestatsRequestBuilder<S>,
) -> Result<UserBattleStatsResponse, E::Error>where
S: IsComplete,
pub async fn battlestats<S>(
self,
builder: impl FnOnce(UserBattlestatsRequestBuilder<Empty>) -> UserBattlestatsRequestBuilder<S>,
) -> Result<UserBattleStatsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn bounties_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserBountiesForIdRequestBuilder<Empty>) -> UserBountiesForIdRequestBuilder<S>,
) -> Result<UserBountiesResponse, E::Error>where
S: IsComplete,
pub async fn bounties_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserBountiesForIdRequestBuilder<Empty>) -> UserBountiesForIdRequestBuilder<S>,
) -> Result<UserBountiesResponse, E::Error>where
S: IsComplete,
Sourcepub async fn calendar<S>(
self,
builder: impl FnOnce(UserCalendarRequestBuilder<Empty>) -> UserCalendarRequestBuilder<S>,
) -> Result<UserCalendarResponse, E::Error>where
S: IsComplete,
pub async fn calendar<S>(
self,
builder: impl FnOnce(UserCalendarRequestBuilder<Empty>) -> UserCalendarRequestBuilder<S>,
) -> Result<UserCalendarResponse, E::Error>where
S: IsComplete,
Get your competition’s event start time
§Description
Requires minimal access key.
Only available to yourself.
Sourcepub async fn competition<S>(
self,
builder: impl FnOnce(UserCompetitionRequestBuilder<Empty>) -> UserCompetitionRequestBuilder<S>,
) -> Result<UserCompetitionResponse, E::Error>where
S: IsComplete,
pub async fn competition<S>(
self,
builder: impl FnOnce(UserCompetitionRequestBuilder<Empty>) -> UserCompetitionRequestBuilder<S>,
) -> Result<UserCompetitionResponse, E::Error>where
S: IsComplete,
Sourcepub async fn competition_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserCompetitionForIdRequestBuilder<Empty>) -> UserCompetitionForIdRequestBuilder<S>,
) -> Result<UserCompetitionResponse, E::Error>where
S: IsComplete,
pub async fn competition_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserCompetitionForIdRequestBuilder<Empty>) -> UserCompetitionForIdRequestBuilder<S>,
) -> Result<UserCompetitionResponse, E::Error>where
S: IsComplete,
Sourcepub async fn cooldowns<S>(
self,
builder: impl FnOnce(UserCooldownsRequestBuilder<Empty>) -> UserCooldownsRequestBuilder<S>,
) -> Result<UserCooldownsResponse, E::Error>where
S: IsComplete,
pub async fn cooldowns<S>(
self,
builder: impl FnOnce(UserCooldownsRequestBuilder<Empty>) -> UserCooldownsRequestBuilder<S>,
) -> Result<UserCooldownsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn crimes_for_crime_id<S>(
self,
crime_id: TornCrimeId,
builder: impl FnOnce(UserCrimesForCrimeIdRequestBuilder<Empty>) -> UserCrimesForCrimeIdRequestBuilder<S>,
) -> Result<UserCrimesResponse, E::Error>where
S: IsComplete,
pub async fn crimes_for_crime_id<S>(
self,
crime_id: TornCrimeId,
builder: impl FnOnce(UserCrimesForCrimeIdRequestBuilder<Empty>) -> UserCrimesForCrimeIdRequestBuilder<S>,
) -> Result<UserCrimesResponse, E::Error>where
S: IsComplete,
Get your crime statistics
§Description
Requires minimal access key.
Return the details and statistics about for a specific crime.
Sourcepub async fn education<S>(
self,
builder: impl FnOnce(UserEducationRequestBuilder<Empty>) -> UserEducationRequestBuilder<S>,
) -> Result<UserEducationResponse, E::Error>where
S: IsComplete,
pub async fn education<S>(
self,
builder: impl FnOnce(UserEducationRequestBuilder<Empty>) -> UserEducationRequestBuilder<S>,
) -> Result<UserEducationResponse, E::Error>where
S: IsComplete,
Get your education information
§Description
The response contains a list of complete eduactions and of a current education (if any).
Sourcepub async fn enlistedcars<S>(
self,
builder: impl FnOnce(UserEnlistedcarsRequestBuilder<Empty>) -> UserEnlistedcarsRequestBuilder<S>,
) -> Result<UserEnlistedCarsResponse, E::Error>where
S: IsComplete,
pub async fn enlistedcars<S>(
self,
builder: impl FnOnce(UserEnlistedcarsRequestBuilder<Empty>) -> UserEnlistedcarsRequestBuilder<S>,
) -> Result<UserEnlistedCarsResponse, E::Error>where
S: IsComplete,
Get your enlisted cars
§Description
Requires minimal access key.
Returns a list of all user enlisted cars.
Sourcepub async fn events<S>(
self,
builder: impl FnOnce(UserEventsRequestBuilder<Empty>) -> UserEventsRequestBuilder<S>,
) -> Result<UserEventsResponse, E::Error>where
S: IsComplete,
pub async fn events<S>(
self,
builder: impl FnOnce(UserEventsRequestBuilder<Empty>) -> UserEventsRequestBuilder<S>,
) -> Result<UserEventsResponse, E::Error>where
S: IsComplete,
Get your events
§Description
Requires limited access key.
Unfortunately, the ‘sort’ parameter is not available for this selection.
Sourcepub async fn faction<S>(
self,
builder: impl FnOnce(UserFactionRequestBuilder<Empty>) -> UserFactionRequestBuilder<S>,
) -> Result<UserFactionResponse, E::Error>where
S: IsComplete,
pub async fn faction<S>(
self,
builder: impl FnOnce(UserFactionRequestBuilder<Empty>) -> UserFactionRequestBuilder<S>,
) -> Result<UserFactionResponse, E::Error>where
S: IsComplete,
Sourcepub async fn faction_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserFactionForIdRequestBuilder<Empty>) -> UserFactionForIdRequestBuilder<S>,
) -> Result<UserFactionResponse, E::Error>where
S: IsComplete,
pub async fn faction_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserFactionForIdRequestBuilder<Empty>) -> UserFactionForIdRequestBuilder<S>,
) -> Result<UserFactionResponse, E::Error>where
S: IsComplete,
Sourcepub async fn factionbalance<S>(
self,
builder: impl FnOnce(UserFactionbalanceRequestBuilder<Empty>) -> UserFactionbalanceRequestBuilder<S>,
) -> Result<UserFactionBalanceResponse, E::Error>where
S: IsComplete,
pub async fn factionbalance<S>(
self,
builder: impl FnOnce(UserFactionbalanceRequestBuilder<Empty>) -> UserFactionbalanceRequestBuilder<S>,
) -> Result<UserFactionBalanceResponse, E::Error>where
S: IsComplete,
Deprecated. Use user/money instead
§Description
Will be removed on 1st of December 2025. Requires limited access key.
Sourcepub async fn forumfeed<S>(
self,
builder: impl FnOnce(UserForumfeedRequestBuilder<Empty>) -> UserForumfeedRequestBuilder<S>,
) -> Result<UserForumFeedResponse, E::Error>where
S: IsComplete,
pub async fn forumfeed<S>(
self,
builder: impl FnOnce(UserForumfeedRequestBuilder<Empty>) -> UserForumfeedRequestBuilder<S>,
) -> Result<UserForumFeedResponse, E::Error>where
S: IsComplete,
Get updates on your threads and posts
§Description
Requires minimal access key.
This selection returns data visible in ‘Feed’ section on forum page. Feed is sorted by timestamp descending. Only a maximum of 100 rows are returned.
Sourcepub async fn forumfriends<S>(
self,
builder: impl FnOnce(UserForumfriendsRequestBuilder<Empty>) -> UserForumfriendsRequestBuilder<S>,
) -> Result<UserForumFriendsResponse, E::Error>where
S: IsComplete,
pub async fn forumfriends<S>(
self,
builder: impl FnOnce(UserForumfriendsRequestBuilder<Empty>) -> UserForumfriendsRequestBuilder<S>,
) -> Result<UserForumFriendsResponse, E::Error>where
S: IsComplete,
Get updates on your friends’ activity
§Description
Requires minimal access key.
This selection returns data visible in ‘Friends’ section on forum page. Feed is sorted by timestamp descending. Only a maximum of 100 rows are returned.
Sourcepub async fn forumposts<S>(
self,
builder: impl FnOnce(UserForumpostsRequestBuilder<Empty>) -> UserForumpostsRequestBuilder<S>,
) -> Result<UserForumPostsResponse, E::Error>where
S: IsComplete,
pub async fn forumposts<S>(
self,
builder: impl FnOnce(UserForumpostsRequestBuilder<Empty>) -> UserForumpostsRequestBuilder<S>,
) -> Result<UserForumPostsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn forumposts_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserForumpostsForIdRequestBuilder<Empty>) -> UserForumpostsForIdRequestBuilder<S>,
) -> Result<UserForumPostsResponse, E::Error>where
S: IsComplete,
pub async fn forumposts_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserForumpostsForIdRequestBuilder<Empty>) -> UserForumpostsForIdRequestBuilder<S>,
) -> Result<UserForumPostsResponse, E::Error>where
S: IsComplete,
Get posts for a specific player
§Description
Requires public access key.
Returns 20 posts per page for a specific player.
Sourcepub async fn forumsubscribedthreads<S>(
self,
builder: impl FnOnce(UserForumsubscribedthreadsRequestBuilder<Empty>) -> UserForumsubscribedthreadsRequestBuilder<S>,
) -> Result<UserForumSubscribedThreadsResponse, E::Error>where
S: IsComplete,
pub async fn forumsubscribedthreads<S>(
self,
builder: impl FnOnce(UserForumsubscribedthreadsRequestBuilder<Empty>) -> UserForumsubscribedthreadsRequestBuilder<S>,
) -> Result<UserForumSubscribedThreadsResponse, E::Error>where
S: IsComplete,
Get updates on threads you subscribed to
§Description
Requires minimal access key.
This selection returns data visible in ‘Subscribed Threads’ section on forum page. Threads are sorted in the same way as on site.
Sourcepub async fn forumthreads<S>(
self,
builder: impl FnOnce(UserForumthreadsRequestBuilder<Empty>) -> UserForumthreadsRequestBuilder<S>,
) -> Result<UserForumThreadsResponse, E::Error>where
S: IsComplete,
pub async fn forumthreads<S>(
self,
builder: impl FnOnce(UserForumthreadsRequestBuilder<Empty>) -> UserForumthreadsRequestBuilder<S>,
) -> Result<UserForumThreadsResponse, E::Error>where
S: IsComplete,
Get your threads
§Description
Requires public access key.
Returns 100 threads per page. The field ‘new_posts’ is also available, indicating the amount of unread posts with a Minimum API key (or higher).
Sourcepub async fn forumthreads_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserForumthreadsForIdRequestBuilder<Empty>) -> UserForumthreadsForIdRequestBuilder<S>,
) -> Result<UserForumThreadsResponse, E::Error>where
S: IsComplete,
pub async fn forumthreads_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserForumthreadsForIdRequestBuilder<Empty>) -> UserForumthreadsForIdRequestBuilder<S>,
) -> Result<UserForumThreadsResponse, E::Error>where
S: IsComplete,
Get threads for a specific player
§Description
Requires public access key.
Returns 100 threads per page for a specific player. When requesting data for the key owner, a field ‘new_posts’ is also available, indicating the amount of unread posts. Minimum API key is required for that.
Sourcepub async fn hof<S>(
self,
builder: impl FnOnce(UserHofRequestBuilder<Empty>) -> UserHofRequestBuilder<S>,
) -> Result<UserHofResponse, E::Error>where
S: IsComplete,
pub async fn hof<S>(
self,
builder: impl FnOnce(UserHofRequestBuilder<Empty>) -> UserHofRequestBuilder<S>,
) -> Result<UserHofResponse, E::Error>where
S: IsComplete,
Get your hall of fame rankings
§Description
Requires public access key.
When requesting selection with Limited, Full or Custom key, battle_stats selection will be populated.
Sourcepub async fn hof_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserHofForIdRequestBuilder<Empty>) -> UserHofForIdRequestBuilder<S>,
) -> Result<UserHofResponse, E::Error>where
S: IsComplete,
pub async fn hof_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserHofForIdRequestBuilder<Empty>) -> UserHofForIdRequestBuilder<S>,
) -> Result<UserHofResponse, E::Error>where
S: IsComplete,
Get hall of fame rankings for a specific player
§Description
Requires public access key.
The battle_stats selection will be populated only when requesting selection with Limited, Full or Custom key and for yourself.
Sourcepub async fn honors<S>(
self,
builder: impl FnOnce(UserHonorsRequestBuilder<Empty>) -> UserHonorsRequestBuilder<S>,
) -> Result<UserHonorsResponse, E::Error>where
S: IsComplete,
pub async fn honors<S>(
self,
builder: impl FnOnce(UserHonorsRequestBuilder<Empty>) -> UserHonorsRequestBuilder<S>,
) -> Result<UserHonorsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn icons<S>(
self,
builder: impl FnOnce(UserIconsRequestBuilder<Empty>) -> UserIconsRequestBuilder<S>,
) -> Result<UserIconsResponse, E::Error>where
S: IsComplete,
pub async fn icons<S>(
self,
builder: impl FnOnce(UserIconsRequestBuilder<Empty>) -> UserIconsRequestBuilder<S>,
) -> Result<UserIconsResponse, E::Error>where
S: IsComplete,
Get your icons information
§Description
Requires public access key.
When requesting data for yourself with ‘Custom’, ‘Limited’ or ‘Full’ access keys, the response will be of type UserIconPrivate, otherwise UserIconPublic.
Sourcepub async fn icons_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserIconsForIdRequestBuilder<Empty>) -> UserIconsForIdRequestBuilder<S>,
) -> Result<UserIconsResponse, E::Error>where
S: IsComplete,
pub async fn icons_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserIconsForIdRequestBuilder<Empty>) -> UserIconsForIdRequestBuilder<S>,
) -> Result<UserIconsResponse, E::Error>where
S: IsComplete,
Get icons information for a specific player
§Description
Requires public access key.
When requesting data for yourself with ‘Custom’, ‘Limited’ or ‘Full’ access keys, the response will be of type UserIconPrivate, otherwise UserIconPublic.
Sourcepub async fn itemmarket<S>(
self,
builder: impl FnOnce(UserItemmarketRequestBuilder<Empty>) -> UserItemmarketRequestBuilder<S>,
) -> Result<UserItemMarketResponse, E::Error>where
S: IsComplete,
pub async fn itemmarket<S>(
self,
builder: impl FnOnce(UserItemmarketRequestBuilder<Empty>) -> UserItemmarketRequestBuilder<S>,
) -> Result<UserItemMarketResponse, E::Error>where
S: IsComplete,
Sourcepub async fn job<S>(
self,
builder: impl FnOnce(UserJobRequestBuilder<Empty>) -> UserJobRequestBuilder<S>,
) -> Result<UserJobResponse, E::Error>where
S: IsComplete,
pub async fn job<S>(
self,
builder: impl FnOnce(UserJobRequestBuilder<Empty>) -> UserJobRequestBuilder<S>,
) -> Result<UserJobResponse, E::Error>where
S: IsComplete,
Sourcepub async fn job_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserJobForIdRequestBuilder<Empty>) -> UserJobForIdRequestBuilder<S>,
) -> Result<UserJobResponse, E::Error>where
S: IsComplete,
pub async fn job_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserJobForIdRequestBuilder<Empty>) -> UserJobForIdRequestBuilder<S>,
) -> Result<UserJobResponse, E::Error>where
S: IsComplete,
Sourcepub async fn jobpoints<S>(
self,
builder: impl FnOnce(UserJobpointsRequestBuilder<Empty>) -> UserJobpointsRequestBuilder<S>,
) -> Result<UserJobPointsResponse, E::Error>where
S: IsComplete,
pub async fn jobpoints<S>(
self,
builder: impl FnOnce(UserJobpointsRequestBuilder<Empty>) -> UserJobpointsRequestBuilder<S>,
) -> Result<UserJobPointsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn jobranks<S>(
self,
builder: impl FnOnce(UserJobranksRequestBuilder<Empty>) -> UserJobranksRequestBuilder<S>,
) -> Result<UserJobRanksResponse, E::Error>where
S: IsComplete,
pub async fn jobranks<S>(
self,
builder: impl FnOnce(UserJobranksRequestBuilder<Empty>) -> UserJobranksRequestBuilder<S>,
) -> Result<UserJobRanksResponse, E::Error>where
S: IsComplete,
Sourcepub async fn list<S>(
self,
builder: impl FnOnce(UserListRequestBuilder<Empty>) -> UserListRequestBuilder<S>,
) -> Result<UserListResponse, E::Error>where
S: IsComplete,
pub async fn list<S>(
self,
builder: impl FnOnce(UserListRequestBuilder<Empty>) -> UserListRequestBuilder<S>,
) -> Result<UserListResponse, E::Error>where
S: IsComplete,
Sourcepub async fn log<S>(
self,
builder: impl FnOnce(UserLogRequestBuilder<Empty>) -> UserLogRequestBuilder<S>,
) -> Result<UserLogsResponse, E::Error>where
S: IsComplete,
pub async fn log<S>(
self,
builder: impl FnOnce(UserLogRequestBuilder<Empty>) -> UserLogRequestBuilder<S>,
) -> Result<UserLogsResponse, E::Error>where
S: IsComplete,
Get your logs
§Description
Requires limited access key.
It’s possible to pass a list of log ids or a log category id.
Sourcepub async fn medals<S>(
self,
builder: impl FnOnce(UserMedalsRequestBuilder<Empty>) -> UserMedalsRequestBuilder<S>,
) -> Result<UserMedalsResponse, E::Error>where
S: IsComplete,
pub async fn medals<S>(
self,
builder: impl FnOnce(UserMedalsRequestBuilder<Empty>) -> UserMedalsRequestBuilder<S>,
) -> Result<UserMedalsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn merits<S>(
self,
builder: impl FnOnce(UserMeritsRequestBuilder<Empty>) -> UserMeritsRequestBuilder<S>,
) -> Result<UserMeritsResponse, E::Error>where
S: IsComplete,
pub async fn merits<S>(
self,
builder: impl FnOnce(UserMeritsRequestBuilder<Empty>) -> UserMeritsRequestBuilder<S>,
) -> Result<UserMeritsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn messages<S>(
self,
builder: impl FnOnce(UserMessagesRequestBuilder<Empty>) -> UserMessagesRequestBuilder<S>,
) -> Result<UserMessagesResponse, E::Error>where
S: IsComplete,
pub async fn messages<S>(
self,
builder: impl FnOnce(UserMessagesRequestBuilder<Empty>) -> UserMessagesRequestBuilder<S>,
) -> Result<UserMessagesResponse, E::Error>where
S: IsComplete,
Sourcepub async fn money<S>(
self,
builder: impl FnOnce(UserMoneyRequestBuilder<Empty>) -> UserMoneyRequestBuilder<S>,
) -> Result<UserMoneyResponse, E::Error>where
S: IsComplete,
pub async fn money<S>(
self,
builder: impl FnOnce(UserMoneyRequestBuilder<Empty>) -> UserMoneyRequestBuilder<S>,
) -> Result<UserMoneyResponse, E::Error>where
S: IsComplete,
Sourcepub async fn newevents<S>(
self,
builder: impl FnOnce(UserNeweventsRequestBuilder<Empty>) -> UserNeweventsRequestBuilder<S>,
) -> Result<UserNewEventsResponse, E::Error>where
S: IsComplete,
pub async fn newevents<S>(
self,
builder: impl FnOnce(UserNeweventsRequestBuilder<Empty>) -> UserNeweventsRequestBuilder<S>,
) -> Result<UserNewEventsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn newmessages<S>(
self,
builder: impl FnOnce(UserNewmessagesRequestBuilder<Empty>) -> UserNewmessagesRequestBuilder<S>,
) -> Result<UserNewMessagesResponse, E::Error>where
S: IsComplete,
pub async fn newmessages<S>(
self,
builder: impl FnOnce(UserNewmessagesRequestBuilder<Empty>) -> UserNewmessagesRequestBuilder<S>,
) -> Result<UserNewMessagesResponse, E::Error>where
S: IsComplete,
Sourcepub async fn notifications<S>(
self,
builder: impl FnOnce(UserNotificationsRequestBuilder<Empty>) -> UserNotificationsRequestBuilder<S>,
) -> Result<UserNotificationsResponse, E::Error>where
S: IsComplete,
pub async fn notifications<S>(
self,
builder: impl FnOnce(UserNotificationsRequestBuilder<Empty>) -> UserNotificationsRequestBuilder<S>,
) -> Result<UserNotificationsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn organizedcrime<S>(
self,
builder: impl FnOnce(UserOrganizedcrimeRequestBuilder<Empty>) -> UserOrganizedcrimeRequestBuilder<S>,
) -> Result<UserOrganizedCrimeResponse, E::Error>where
S: IsComplete,
pub async fn organizedcrime<S>(
self,
builder: impl FnOnce(UserOrganizedcrimeRequestBuilder<Empty>) -> UserOrganizedcrimeRequestBuilder<S>,
) -> Result<UserOrganizedCrimeResponse, E::Error>where
S: IsComplete,
Sourcepub async fn personalstats<S>(
self,
builder: impl FnOnce(UserPersonalstatsRequestBuilder<Empty>) -> UserPersonalstatsRequestBuilder<S>,
) -> Result<UserPersonalStatsResponse, E::Error>where
S: IsComplete,
pub async fn personalstats<S>(
self,
builder: impl FnOnce(UserPersonalstatsRequestBuilder<Empty>) -> UserPersonalstatsRequestBuilder<S>,
) -> Result<UserPersonalStatsResponse, E::Error>where
S: IsComplete,
Get your personal stats
§Description
Requires public access key.
- UserPersonalStatsFull is returned only when this selection is requested with Limited, Full or Custom key access key.
- UserPersonalStatsFullPublic is returned when the requested category is ‘all’.
- UserPersonalStatsPopular is returned when the requested category is ‘popular’. Please try to use UserPersonalStatsPopular over UserPersonalStatsFullPublic wherever possible in order to reduce the server load.
- Otherwise, UserPersonalStatsCategory is returned for the matched category.
- Historical stats can be fetched via ‘stat’ query parameter. It’s only possible to pass up to 10 historical stats at once (the rest is trimmed). When requesting historical stats the response will be of type UserPersonalStatsHistoric.
- Use ‘timestamp’ query parameter to get historical stats at the certain point in time. It’s possible some historical stats didn’t exist at the given timestamp, and for such stats you will not receive anything back.
Sourcepub async fn personalstats_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserPersonalstatsForIdRequestBuilder<Empty>) -> UserPersonalstatsForIdRequestBuilder<S>,
) -> Result<UserPersonalStatsResponse, E::Error>where
S: IsComplete,
pub async fn personalstats_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserPersonalstatsForIdRequestBuilder<Empty>) -> UserPersonalstatsForIdRequestBuilder<S>,
) -> Result<UserPersonalStatsResponse, E::Error>where
S: IsComplete,
Get a player’s personal stats
§Description
Requires public access key.
- UserPersonalStatsFull is returned only when this selection is requested for the key owner with Limited, Full or Custom key.
- UserPersonalStatsFullPublic is returned when the requested category is ‘all’.
- UserPersonalStatsPopular is returned when the requested category is ‘popular’. Please try to use UserPersonalStatsPopular over UserPersonalStatsFullPublic wherever possible in order to reduce the server load.
- Otherwise, UserPersonalStatsCategory is returned for the matched category.
- It’s possible to request specific stats via ‘stat’ parameter. In this case the response will vary depending on the stats requested. Private stats are still available only to the key owner (with Limited or higher key).
- Additionally, historical stats can also be fetched via ‘stat’ query parameter, but ‘timestamp’ parameter must be provided as well. It’s only possible to pass up to 10 historical stats at once (the rest is trimmed). When requesting historical stats the response will be of type UserPersonalStatsHistoric.
Sourcepub async fn profile<S>(
self,
builder: impl FnOnce(UserProfileRequestBuilder<Empty>) -> UserProfileRequestBuilder<S>,
) -> Result<UserProfileResponse, E::Error>where
S: IsComplete,
pub async fn profile<S>(
self,
builder: impl FnOnce(UserProfileRequestBuilder<Empty>) -> UserProfileRequestBuilder<S>,
) -> Result<UserProfileResponse, E::Error>where
S: IsComplete,
Sourcepub async fn profile_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserProfileForIdRequestBuilder<Empty>) -> UserProfileForIdRequestBuilder<S>,
) -> Result<UserProfileResponse, E::Error>where
S: IsComplete,
pub async fn profile_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserProfileForIdRequestBuilder<Empty>) -> UserProfileForIdRequestBuilder<S>,
) -> Result<UserProfileResponse, E::Error>where
S: IsComplete,
Sourcepub async fn properties<S>(
self,
builder: impl FnOnce(UserPropertiesRequestBuilder<Empty>) -> UserPropertiesRequestBuilder<S>,
) -> Result<UserPropertiesResponse, E::Error>where
S: IsComplete,
pub async fn properties<S>(
self,
builder: impl FnOnce(UserPropertiesRequestBuilder<Empty>) -> UserPropertiesRequestBuilder<S>,
) -> Result<UserPropertiesResponse, E::Error>where
S: IsComplete,
Get your own properties
§Description
Requires public access key.
Extended responses are available when requesting the data with Limited or higher access keys.
Sourcepub async fn properties_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserPropertiesForIdRequestBuilder<Empty>) -> UserPropertiesForIdRequestBuilder<S>,
) -> Result<UserPropertiesResponse, E::Error>where
S: IsComplete,
pub async fn properties_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserPropertiesForIdRequestBuilder<Empty>) -> UserPropertiesForIdRequestBuilder<S>,
) -> Result<UserPropertiesResponse, E::Error>where
S: IsComplete,
Get specific user’s properties
§Description
Requires public access key.
Extended responses are available when requesting the data with Limited or higher access keys for yourself or your spouse.
Sourcepub async fn property<S>(
self,
builder: impl FnOnce(UserPropertyRequestBuilder<Empty>) -> UserPropertyRequestBuilder<S>,
) -> Result<UserPropertyResponse, E::Error>where
S: IsComplete,
pub async fn property<S>(
self,
builder: impl FnOnce(UserPropertyRequestBuilder<Empty>) -> UserPropertyRequestBuilder<S>,
) -> Result<UserPropertyResponse, E::Error>where
S: IsComplete,
Sourcepub async fn property_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserPropertyForIdRequestBuilder<Empty>) -> UserPropertyForIdRequestBuilder<S>,
) -> Result<UserPropertyResponse, E::Error>where
S: IsComplete,
pub async fn property_for_id<S>(
self,
id: UserId,
builder: impl FnOnce(UserPropertyForIdRequestBuilder<Empty>) -> UserPropertyForIdRequestBuilder<S>,
) -> Result<UserPropertyResponse, E::Error>where
S: IsComplete,
Sourcepub async fn races<S>(
self,
builder: impl FnOnce(UserRacesRequestBuilder<Empty>) -> UserRacesRequestBuilder<S>,
) -> Result<UserRacesResponse, E::Error>where
S: IsComplete,
pub async fn races<S>(
self,
builder: impl FnOnce(UserRacesRequestBuilder<Empty>) -> UserRacesRequestBuilder<S>,
) -> Result<UserRacesResponse, E::Error>where
S: IsComplete,
Get user races
§Description
Requires minimal access key.
Returns a list of user races, ordered by race start timestamp.
Sourcepub async fn racingrecords<S>(
self,
builder: impl FnOnce(UserRacingrecordsRequestBuilder<Empty>) -> UserRacingrecordsRequestBuilder<S>,
) -> Result<UserRacingRecordsResponse, E::Error>where
S: IsComplete,
pub async fn racingrecords<S>(
self,
builder: impl FnOnce(UserRacingrecordsRequestBuilder<Empty>) -> UserRacingrecordsRequestBuilder<S>,
) -> Result<UserRacingRecordsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn refills<S>(
self,
builder: impl FnOnce(UserRefillsRequestBuilder<Empty>) -> UserRefillsRequestBuilder<S>,
) -> Result<UserRefillsResponse, E::Error>where
S: IsComplete,
pub async fn refills<S>(
self,
builder: impl FnOnce(UserRefillsRequestBuilder<Empty>) -> UserRefillsRequestBuilder<S>,
) -> Result<UserRefillsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn reports<S>(
self,
builder: impl FnOnce(UserReportsRequestBuilder<Empty>) -> UserReportsRequestBuilder<S>,
) -> Result<ReportsResponse, E::Error>where
S: IsComplete,
pub async fn reports<S>(
self,
builder: impl FnOnce(UserReportsRequestBuilder<Empty>) -> UserReportsRequestBuilder<S>,
) -> Result<ReportsResponse, E::Error>where
S: IsComplete,
Get your reports
§Description
Requires limited access key.
- The default limit is set to 25. However, the limit can be set to 100 for the ‘stats’ category.
Sourcepub async fn revives<S>(
self,
builder: impl FnOnce(UserRevivesRequestBuilder<Empty>) -> UserRevivesRequestBuilder<S>,
) -> Result<RevivesResponse, E::Error>where
S: IsComplete,
pub async fn revives<S>(
self,
builder: impl FnOnce(UserRevivesRequestBuilder<Empty>) -> UserRevivesRequestBuilder<S>,
) -> Result<RevivesResponse, E::Error>where
S: IsComplete,
Sourcepub async fn revives_full<S>(
self,
builder: impl FnOnce(UserRevivesFullRequestBuilder<Empty>) -> UserRevivesFullRequestBuilder<S>,
) -> Result<RevivesFullResponse, E::Error>where
S: IsComplete,
pub async fn revives_full<S>(
self,
builder: impl FnOnce(UserRevivesFullRequestBuilder<Empty>) -> UserRevivesFullRequestBuilder<S>,
) -> Result<RevivesFullResponse, E::Error>where
S: IsComplete,
Sourcepub async fn skills<S>(
self,
builder: impl FnOnce(UserSkillsRequestBuilder<Empty>) -> UserSkillsRequestBuilder<S>,
) -> Result<UserSkillsResponse, E::Error>where
S: IsComplete,
pub async fn skills<S>(
self,
builder: impl FnOnce(UserSkillsRequestBuilder<Empty>) -> UserSkillsRequestBuilder<S>,
) -> Result<UserSkillsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn travel<S>(
self,
builder: impl FnOnce(UserTravelRequestBuilder<Empty>) -> UserTravelRequestBuilder<S>,
) -> Result<UserTravelResponse, E::Error>where
S: IsComplete,
pub async fn travel<S>(
self,
builder: impl FnOnce(UserTravelRequestBuilder<Empty>) -> UserTravelRequestBuilder<S>,
) -> Result<UserTravelResponse, E::Error>where
S: IsComplete,
Sourcepub async fn virus<S>(
self,
builder: impl FnOnce(UserVirusRequestBuilder<Empty>) -> UserVirusRequestBuilder<S>,
) -> Result<UserVirusResponse, E::Error>where
S: IsComplete,
pub async fn virus<S>(
self,
builder: impl FnOnce(UserVirusRequestBuilder<Empty>) -> UserVirusRequestBuilder<S>,
) -> Result<UserVirusResponse, E::Error>where
S: IsComplete,
Sourcepub async fn workstats<S>(
self,
builder: impl FnOnce(UserWorkstatsRequestBuilder<Empty>) -> UserWorkstatsRequestBuilder<S>,
) -> Result<UserWorkStatsResponse, E::Error>where
S: IsComplete,
pub async fn workstats<S>(
self,
builder: impl FnOnce(UserWorkstatsRequestBuilder<Empty>) -> UserWorkstatsRequestBuilder<S>,
) -> Result<UserWorkStatsResponse, E::Error>where
S: IsComplete,
Sourcepub async fn lookup<S>(
self,
builder: impl FnOnce(UserLookupRequestBuilder<Empty>) -> UserLookupRequestBuilder<S>,
) -> Result<UserLookupResponse, E::Error>where
S: IsComplete,
pub async fn lookup<S>(
self,
builder: impl FnOnce(UserLookupRequestBuilder<Empty>) -> UserLookupRequestBuilder<S>,
) -> Result<UserLookupResponse, E::Error>where
S: IsComplete,
Sourcepub async fn timestamp<S>(
self,
builder: impl FnOnce(UserTimestampRequestBuilder<Empty>) -> UserTimestampRequestBuilder<S>,
) -> Result<TimestampResponse, E::Error>where
S: IsComplete,
pub async fn timestamp<S>(
self,
builder: impl FnOnce(UserTimestampRequestBuilder<Empty>) -> UserTimestampRequestBuilder<S>,
) -> Result<TimestampResponse, E::Error>where
S: IsComplete,
Sourcepub async fn for_selections<S>(
self,
builder: impl FnOnce(UserRequestBuilder<Empty>) -> UserRequestBuilder<S>,
) -> Result<Response, E::Error>where
S: IsComplete,
pub async fn for_selections<S>(
self,
builder: impl FnOnce(UserRequestBuilder<Empty>) -> UserRequestBuilder<S>,
) -> Result<Response, E::Error>where
S: IsComplete,
Get any User selection
§Description
Key access level depends on the required selections.
Choose one or more selections (comma separated).