pub struct BulkUserScope<E>where
E: BulkExecutor,{ /* private fields */ }
Implementations§
Source§impl<E> BulkUserScope<E>where
E: BulkExecutor,
impl<E> BulkUserScope<E>where
E: BulkExecutor,
pub fn new(executor: E) -> Self
Sourcepub fn bounties_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserBountiesResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserBountiesForIdRequestBuilder<Empty>) -> UserBountiesForIdRequestBuilder<S>,
pub fn bounties_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserBountiesResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserBountiesForIdRequestBuilder<Empty>) -> UserBountiesForIdRequestBuilder<S>,
Sourcepub fn crimes_for_crime_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (TornCrimeId, Result<UserCrimesResponse, E::Error>)>where
I: IntoIterator<Item = TornCrimeId>,
S: IsComplete,
B: Fn(UserCrimesForCrimeIdRequestBuilder<Empty>) -> UserCrimesForCrimeIdRequestBuilder<S>,
pub fn crimes_for_crime_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (TornCrimeId, Result<UserCrimesResponse, E::Error>)>where
I: IntoIterator<Item = TornCrimeId>,
S: IsComplete,
B: Fn(UserCrimesForCrimeIdRequestBuilder<Empty>) -> UserCrimesForCrimeIdRequestBuilder<S>,
Get your crime statistics
§Description
Requires minimal access key.
Return the details and statistics about for a specific crime.
Sourcepub fn forumposts_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserForumPostsResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserForumpostsForIdRequestBuilder<Empty>) -> UserForumpostsForIdRequestBuilder<S>,
pub fn forumposts_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserForumPostsResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserForumpostsForIdRequestBuilder<Empty>) -> UserForumpostsForIdRequestBuilder<S>,
Get posts for a specific player
§Description
Requires public access key.
Returns 20 posts per page for a specific player.
Sourcepub fn forumthreads_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserForumThreadsResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserForumthreadsForIdRequestBuilder<Empty>) -> UserForumthreadsForIdRequestBuilder<S>,
pub fn forumthreads_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserForumThreadsResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserForumthreadsForIdRequestBuilder<Empty>) -> UserForumthreadsForIdRequestBuilder<S>,
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 fn hof_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserHofResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserHofForIdRequestBuilder<Empty>) -> UserHofForIdRequestBuilder<S>,
pub fn hof_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserHofResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserHofForIdRequestBuilder<Empty>) -> UserHofForIdRequestBuilder<S>,
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 fn personalstats_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserPersonalStatsResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserPersonalstatsForIdRequestBuilder<Empty>) -> UserPersonalstatsForIdRequestBuilder<S>,
pub fn personalstats_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserPersonalStatsResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserPersonalstatsForIdRequestBuilder<Empty>) -> UserPersonalstatsForIdRequestBuilder<S>,
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 fn properties_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserPropertiesResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserPropertiesForIdRequestBuilder<Empty>) -> UserPropertiesForIdRequestBuilder<S>,
pub fn properties_for_id<S, I, B>(
self,
ids: I,
builder: B,
) -> impl Stream<Item = (UserId, Result<UserPropertiesResponse, E::Error>)>where
I: IntoIterator<Item = UserId>,
S: IsComplete,
B: Fn(UserPropertiesForIdRequestBuilder<Empty>) -> UserPropertiesForIdRequestBuilder<S>,
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.