Struct FactionScope

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

Implementations§

Source§

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

Source

pub fn new(executor: E) -> Self

Source

pub async fn applications<S>( self, builder: impl FnOnce(FactionApplicationsRequestBuilder<Empty>) -> FactionApplicationsRequestBuilder<S>, ) -> Result<FactionApplicationsResponse, E::Error>
where S: IsComplete,

Source

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

Source

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

Source

pub async fn balance<S>( self, builder: impl FnOnce(FactionBalanceRequestBuilder<Empty>) -> FactionBalanceRequestBuilder<S>, ) -> Result<FactionBalanceResponse, E::Error>
where S: IsComplete,

Source

pub async fn basic<S>( self, builder: impl FnOnce(FactionBasicRequestBuilder<Empty>) -> FactionBasicRequestBuilder<S>, ) -> Result<FactionBasicResponse, E::Error>
where S: IsComplete,

Source

pub async fn basic_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionBasicForIdRequestBuilder<Empty>) -> FactionBasicForIdRequestBuilder<S>, ) -> Result<FactionBasicResponse, E::Error>
where S: IsComplete,

Source

pub async fn chain<S>( self, builder: impl FnOnce(FactionChainRequestBuilder<Empty>) -> FactionChainRequestBuilder<S>, ) -> Result<FactionOngoingChainResponse, E::Error>
where S: IsComplete,

Source

pub async fn chain_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionChainForIdRequestBuilder<Empty>) -> FactionChainForIdRequestBuilder<S>, ) -> Result<FactionOngoingChainResponse, E::Error>
where S: IsComplete,

Source

pub async fn chains<S>( self, builder: impl FnOnce(FactionChainsRequestBuilder<Empty>) -> FactionChainsRequestBuilder<S>, ) -> Result<FactionChainsResponse, E::Error>
where S: IsComplete,

Source

pub async fn chains_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionChainsForIdRequestBuilder<Empty>) -> FactionChainsForIdRequestBuilder<S>, ) -> Result<FactionChainsResponse, E::Error>
where S: IsComplete,

Source

pub async fn chainreport<S>( self, builder: impl FnOnce(FactionChainreportRequestBuilder<Empty>) -> FactionChainreportRequestBuilder<S>, ) -> Result<FactionChainReportResponse, E::Error>
where S: IsComplete,

Source

pub async fn chainreport_for_chain_id<S>( self, chain_id: ChainId, builder: impl FnOnce(FactionChainreportForChainIdRequestBuilder<Empty>) -> FactionChainreportForChainIdRequestBuilder<S>, ) -> Result<FactionChainReportResponse, E::Error>
where S: IsComplete,

Source

pub async fn contributors<S>( self, builder: impl FnOnce(FactionContributorsRequestBuilder<Empty>) -> FactionContributorsRequestBuilder<S>, ) -> Result<FactionContributorsResponse, E::Error>
where S: IsComplete,

Source

pub async fn crimes<S>( self, builder: impl FnOnce(FactionCrimesRequestBuilder<Empty>) -> FactionCrimesRequestBuilder<S>, ) -> Result<FactionCrimesResponse, E::Error>
where S: IsComplete,

Source

pub async fn crime_for_crime_id<S>( self, crime_id: FactionCrimeId, builder: impl FnOnce(FactionCrimeForCrimeIdRequestBuilder<Empty>) -> FactionCrimeForCrimeIdRequestBuilder<S>, ) -> Result<FactionCrimeResponse, E::Error>
where S: IsComplete,

Source

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

Source

pub async fn hof_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionHofForIdRequestBuilder<Empty>) -> FactionHofForIdRequestBuilder<S>, ) -> Result<FactionHofResponse, E::Error>
where S: IsComplete,

Source

pub async fn members<S>( self, builder: impl FnOnce(FactionMembersRequestBuilder<Empty>) -> FactionMembersRequestBuilder<S>, ) -> Result<FactionMembersResponse, E::Error>
where S: IsComplete,

Source

pub async fn members_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionMembersForIdRequestBuilder<Empty>) -> FactionMembersForIdRequestBuilder<S>, ) -> Result<FactionMembersResponse, E::Error>
where S: IsComplete,

Source

pub async fn news<S>( self, builder: impl FnOnce(FactionNewsRequestBuilder<Empty>) -> FactionNewsRequestBuilder<S>, ) -> Result<FactionNewsResponse, E::Error>
where S: IsComplete,

Source

pub async fn positions<S>( self, builder: impl FnOnce(FactionPositionsRequestBuilder<Empty>) -> FactionPositionsRequestBuilder<S>, ) -> Result<FactionPositionsResponse, E::Error>
where S: IsComplete,

Source

pub async fn rackets<S>( self, builder: impl FnOnce(FactionRacketsRequestBuilder<Empty>) -> FactionRacketsRequestBuilder<S>, ) -> Result<FactionRacketsReponse, E::Error>
where S: IsComplete,

Source

pub async fn rankedwars<S>( self, builder: impl FnOnce(FactionRankedwarsRequestBuilder<Empty>) -> FactionRankedwarsRequestBuilder<S>, ) -> Result<FactionRankedWarResponse, E::Error>
where S: IsComplete,

Source

pub async fn rankedwars_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionRankedwarsForIdRequestBuilder<Empty>) -> FactionRankedwarsForIdRequestBuilder<S>, ) -> Result<FactionRankedWarResponse, E::Error>
where S: IsComplete,

Source

pub async fn rankedwarreport_for_ranked_war_id<S>( self, ranked_war_id: RankedWarId, builder: impl FnOnce(FactionRankedwarreportForRankedWarIdRequestBuilder<Empty>) -> FactionRankedwarreportForRankedWarIdRequestBuilder<S>, ) -> Result<FactionRankedWarReportResponse, E::Error>
where S: IsComplete,

Source

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

Source

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

Source

pub async fn stats<S>( self, builder: impl FnOnce(FactionStatsRequestBuilder<Empty>) -> FactionStatsRequestBuilder<S>, ) -> Result<FactionStatsResponse, E::Error>
where S: IsComplete,

Source

pub async fn territory<S>( self, builder: impl FnOnce(FactionTerritoryRequestBuilder<Empty>) -> FactionTerritoryRequestBuilder<S>, ) -> Result<FactionTerritoriesReponse, E::Error>
where S: IsComplete,

Source

pub async fn territory_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionTerritoryForIdRequestBuilder<Empty>) -> FactionTerritoryForIdRequestBuilder<S>, ) -> Result<FactionTerritoriesReponse, E::Error>
where S: IsComplete,

Source

pub async fn territoryownership<S>( self, builder: impl FnOnce(FactionTerritoryownershipRequestBuilder<Empty>) -> FactionTerritoryownershipRequestBuilder<S>, ) -> Result<FactionTerritoriesOwnershipResponse, E::Error>
where S: IsComplete,

Source

pub async fn territorywars<S>( self, builder: impl FnOnce(FactionTerritorywarsRequestBuilder<Empty>) -> FactionTerritorywarsRequestBuilder<S>, ) -> Result<FactionTerritoryWarsResponse, E::Error>
where S: IsComplete,

Source

pub async fn territorywars_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionTerritorywarsForIdRequestBuilder<Empty>) -> FactionTerritorywarsForIdRequestBuilder<S>, ) -> Result<FactionTerritoryWarsHistoryResponse, E::Error>
where S: IsComplete,

Source

pub async fn territorywarreport_for_territory_war_id<S>( self, territory_war_id: TerritoryWarId, builder: impl FnOnce(FactionTerritorywarreportForTerritoryWarIdRequestBuilder<Empty>) -> FactionTerritorywarreportForTerritoryWarIdRequestBuilder<S>, ) -> Result<FactionTerritoryWarReportResponse, E::Error>
where S: IsComplete,

Source

pub async fn upgrades<S>( self, builder: impl FnOnce(FactionUpgradesRequestBuilder<Empty>) -> FactionUpgradesRequestBuilder<S>, ) -> Result<FactionUpgradesResponse, E::Error>
where S: IsComplete,

Source

pub async fn wars<S>( self, builder: impl FnOnce(FactionWarsRequestBuilder<Empty>) -> FactionWarsRequestBuilder<S>, ) -> Result<FactionWarsResponse, E::Error>
where S: IsComplete,

Source

pub async fn wars_for_id<S>( self, id: FactionId, builder: impl FnOnce(FactionWarsForIdRequestBuilder<Empty>) -> FactionWarsForIdRequestBuilder<S>, ) -> Result<FactionWarsResponse, E::Error>
where S: IsComplete,

Source

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

Source

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

Source

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

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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