Struct UserScope

Source
pub struct UserScope<E>(/* private fields */)
where
    E: Executor;

Implementations§

Source§

impl<E> UserScope<E>
where E: Executor,

Source

pub fn new(executor: E) -> Self

Source

pub async fn attacks<S>( self, builder: impl FnOnce(UserAttacksRequestBuilder<Empty>) -> UserAttacksRequestBuilder<S>, ) -> Result<FactionAttacksResponse, E::Error>
where S: IsComplete,

Source

pub async fn attacksfull<S>( self, builder: impl FnOnce(UserAttacksfullRequestBuilder<Empty>) -> UserAttacksfullRequestBuilder<S>, ) -> Result<FactionAttacksFullResponse, E::Error>
where S: IsComplete,

Source

pub async fn bounties<S>( self, builder: impl FnOnce(UserBountiesRequestBuilder<Empty>) -> UserBountiesRequestBuilder<S>, ) -> Result<UserBountiesResponse, E::Error>
where S: IsComplete,

Source

pub async fn bounties_for_id<S>( self, id: UserId, builder: impl FnOnce(UserBountiesForIdRequestBuilder<Empty>) -> UserBountiesForIdRequestBuilder<S>, ) -> Result<UserBountiesResponse, E::Error>
where S: IsComplete,

Source

pub async fn calendar<S>( self, builder: impl FnOnce(UserCalendarRequestBuilder<Empty>) -> UserCalendarRequestBuilder<S>, ) -> Result<UserCalendarResponse, E::Error>
where S: IsComplete,

Source

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,

Source

pub async fn education<S>( self, builder: impl FnOnce(UserEducationRequestBuilder<Empty>) -> UserEducationRequestBuilder<S>, ) -> Result<UserEducationResponse, E::Error>
where S: IsComplete,

Source

pub async fn enlistedcars<S>( self, builder: impl FnOnce(UserEnlistedcarsRequestBuilder<Empty>) -> UserEnlistedcarsRequestBuilder<S>, ) -> Result<UserEnlistedCarsResponse, E::Error>
where S: IsComplete,

Source

pub async fn factionbalance<S>( self, builder: impl FnOnce(UserFactionbalanceRequestBuilder<Empty>) -> UserFactionbalanceRequestBuilder<S>, ) -> Result<UserFactionBalanceResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumfeed<S>( self, builder: impl FnOnce(UserForumfeedRequestBuilder<Empty>) -> UserForumfeedRequestBuilder<S>, ) -> Result<UserForumFeedResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumfriends<S>( self, builder: impl FnOnce(UserForumfriendsRequestBuilder<Empty>) -> UserForumfriendsRequestBuilder<S>, ) -> Result<UserForumFriendsResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumposts<S>( self, builder: impl FnOnce(UserForumpostsRequestBuilder<Empty>) -> UserForumpostsRequestBuilder<S>, ) -> Result<UserForumPostsResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumposts_for_id<S>( self, id: UserId, builder: impl FnOnce(UserForumpostsForIdRequestBuilder<Empty>) -> UserForumpostsForIdRequestBuilder<S>, ) -> Result<UserForumPostsResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumsubscribedthreads<S>( self, builder: impl FnOnce(UserForumsubscribedthreadsRequestBuilder<Empty>) -> UserForumsubscribedthreadsRequestBuilder<S>, ) -> Result<UserForumSubscribedThreadsResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumthreads<S>( self, builder: impl FnOnce(UserForumthreadsRequestBuilder<Empty>) -> UserForumthreadsRequestBuilder<S>, ) -> Result<UserForumThreadsResponse, E::Error>
where S: IsComplete,

Source

pub async fn forumthreads_for_id<S>( self, id: UserId, builder: impl FnOnce(UserForumthreadsForIdRequestBuilder<Empty>) -> UserForumthreadsForIdRequestBuilder<S>, ) -> Result<UserForumThreadsResponse, E::Error>
where S: IsComplete,

Source

pub async fn hof<S>( self, builder: impl FnOnce(UserHofRequestBuilder<Empty>) -> UserHofRequestBuilder<S>, ) -> Result<UserHofResponse, E::Error>
where S: IsComplete,

Source

pub async fn hof_for_id<S>( self, id: UserId, builder: impl FnOnce(UserHofForIdRequestBuilder<Empty>) -> UserHofForIdRequestBuilder<S>, ) -> Result<UserHofResponse, E::Error>
where S: IsComplete,

Source

pub async fn itemmarket<S>( self, builder: impl FnOnce(UserItemmarketRequestBuilder<Empty>) -> UserItemmarketRequestBuilder<S>, ) -> Result<UserItemMarketResponse, E::Error>
where S: IsComplete,

Source

pub async fn jobranks<S>( self, builder: impl FnOnce(UserJobranksRequestBuilder<Empty>) -> UserJobranksRequestBuilder<S>, ) -> Result<UserJobRanksResponse, E::Error>
where S: IsComplete,

Source

pub async fn list<S>( self, builder: impl FnOnce(UserListRequestBuilder<Empty>) -> UserListRequestBuilder<S>, ) -> Result<UserListResponse, E::Error>
where S: IsComplete,

Source

pub async fn organizedcrime<S>( self, builder: impl FnOnce(UserOrganizedcrimeRequestBuilder<Empty>) -> UserOrganizedcrimeRequestBuilder<S>, ) -> Result<UserOrganizedCrimeResponse, E::Error>
where S: IsComplete,

Source

pub async fn personalstats<S>( self, builder: impl FnOnce(UserPersonalstatsRequestBuilder<Empty>) -> UserPersonalstatsRequestBuilder<S>, ) -> Result<UserPersonalStatsResponse, E::Error>
where S: IsComplete,

Source

pub async fn personalstats_for_id<S>( self, id: UserId, builder: impl FnOnce(UserPersonalstatsForIdRequestBuilder<Empty>) -> UserPersonalstatsForIdRequestBuilder<S>, ) -> Result<UserPersonalStatsResponse, E::Error>
where S: IsComplete,

Source

pub async fn races<S>( self, builder: impl FnOnce(UserRacesRequestBuilder<Empty>) -> UserRacesRequestBuilder<S>, ) -> Result<UserRacesResponse, E::Error>
where S: IsComplete,

Source

pub async fn revives<S>( self, builder: impl FnOnce(UserRevivesRequestBuilder<Empty>) -> UserRevivesRequestBuilder<S>, ) -> Result<RevivesResponse, E::Error>
where S: IsComplete,

Source

pub async fn revives_full<S>( self, builder: impl FnOnce(UserRevivesFullRequestBuilder<Empty>) -> UserRevivesFullRequestBuilder<S>, ) -> Result<RevivesFullResponse, E::Error>
where S: IsComplete,

Source

pub async fn lookup<S>( self, builder: impl FnOnce(UserLookupRequestBuilder<Empty>) -> UserLookupRequestBuilder<S>, ) -> Result<UserLookupResponse, E::Error>
where S: IsComplete,

Source

pub async fn timestamp<S>( self, builder: impl FnOnce(UserTimestampRequestBuilder<Empty>) -> UserTimestampRequestBuilder<S>, ) -> Result<TimestampResponse, E::Error>
where S: IsComplete,

Source

pub async fn for_selections<S>( self, builder: impl FnOnce(UserRequestBuilder<Empty>) -> UserRequestBuilder<S>, ) -> Result<Response, E::Error>
where S: IsComplete,

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<E> UnwindSafe for UserScope<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