Struct BulkUserScope

Source
pub struct BulkUserScope<E>
where E: BulkExecutor,
{ /* private fields */ }

Implementations§

Source§

impl<E> BulkUserScope<E>
where E: BulkExecutor,

Source

pub fn new(executor: E) -> Self

Source

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>,

Get bounties placed on a specific user

§Description

Requires public access key.

Source

pub fn crimes_for_crime_id<S, I, B>( self, ids: I, builder: B, ) -> impl Stream<Item = (TornCrimeId, Result<UserCrimesResponse, E::Error>)>

Get your crime statistics

§Description

Requires minimal access key.
Return the details and statistics about for a specific crime.

Source

pub fn forumposts_for_id<S, I, B>( self, ids: I, builder: B, ) -> impl Stream<Item = (UserId, Result<UserForumPostsResponse, E::Error>)>

Get posts for a specific player

§Description

Requires public access key.
Returns 20 posts per page for a specific player.

Source

pub fn forumthreads_for_id<S, I, B>( self, ids: I, builder: B, ) -> impl Stream<Item = (UserId, Result<UserForumThreadsResponse, E::Error>)>

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.

Source

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.

Source

pub fn personalstats_for_id<S, I, B>( self, ids: I, builder: B, ) -> impl Stream<Item = (UserId, Result<UserPersonalStatsResponse, E::Error>)>

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.
Source

pub fn properties_for_id<S, I, B>( self, ids: I, builder: B, ) -> impl Stream<Item = (UserId, Result<UserPropertiesResponse, E::Error>)>

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.

Source

pub fn property_for_id<S, I, B>( self, ids: I, builder: B, ) -> impl Stream<Item = (UserId, Result<UserPropertyResponse, E::Error>)>
where I: IntoIterator<Item = UserId>, S: IsComplete, B: Fn(UserPropertyForIdRequestBuilder<Empty>) -> UserPropertyForIdRequestBuilder<S>,

Get specific user’s property

§Description

Requires public access key.

Auto Trait Implementations§

§

impl<E> Freeze for BulkUserScope<E>
where E: Freeze,

§

impl<E> RefUnwindSafe for BulkUserScope<E>
where E: RefUnwindSafe,

§

impl<E> Send for BulkUserScope<E>
where E: Send,

§

impl<E> Sync for BulkUserScope<E>
where E: Sync,

§

impl<E> Unpin for BulkUserScope<E>
where E: Unpin,

§

impl<E> UnwindSafe for BulkUserScope<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T