pub struct FactionScope<'e, E>(/* private fields */)
where
E: Executor;
Implementations§
Source§impl<'e, E> FactionScope<'e, E>where
E: Executor,
impl<'e, E> FactionScope<'e, E>where
E: Executor,
pub fn new(executor: &'e E) -> Self
pub async fn applications<S>(
&self,
builder: impl FnOnce(FactionApplicationsRequestBuilder<Empty>) -> FactionApplicationsRequestBuilder<S>,
) -> Result<FactionApplicationsResponse, E::Error>where
S: IsComplete,
pub async fn attacks<S>(
&self,
builder: impl FnOnce(FactionAttacksRequestBuilder<Empty>) -> FactionAttacksRequestBuilder<S>,
) -> Result<FactionAttacksResponse, E::Error>where
S: IsComplete,
pub async fn attacksfull<S>(
&self,
builder: impl FnOnce(FactionAttacksfullRequestBuilder<Empty>) -> FactionAttacksfullRequestBuilder<S>,
) -> Result<FactionAttacksFullResponse, E::Error>where
S: IsComplete,
pub async fn balance<S>(
&self,
builder: impl FnOnce(FactionBalanceRequestBuilder<Empty>) -> FactionBalanceRequestBuilder<S>,
) -> Result<FactionBalanceResponse, E::Error>where
S: IsComplete,
pub async fn basic<S>(
&self,
builder: impl FnOnce(FactionBasicRequestBuilder<Empty>) -> FactionBasicRequestBuilder<S>,
) -> Result<FactionBasicResponse, E::Error>where
S: IsComplete,
pub async fn basic_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionBasicForIdRequestBuilder<Empty>) -> FactionBasicForIdRequestBuilder<S>,
) -> Result<FactionBasicResponse, E::Error>where
S: IsComplete,
pub async fn chain<S>(
&self,
builder: impl FnOnce(FactionChainRequestBuilder<Empty>) -> FactionChainRequestBuilder<S>,
) -> Result<FactionOngoingChainResponse, E::Error>where
S: IsComplete,
pub async fn chain_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionChainForIdRequestBuilder<Empty>) -> FactionChainForIdRequestBuilder<S>,
) -> Result<FactionOngoingChainResponse, E::Error>where
S: IsComplete,
pub async fn chains<S>(
&self,
builder: impl FnOnce(FactionChainsRequestBuilder<Empty>) -> FactionChainsRequestBuilder<S>,
) -> Result<FactionChainsResponse, E::Error>where
S: IsComplete,
pub async fn chains_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionChainsForIdRequestBuilder<Empty>) -> FactionChainsForIdRequestBuilder<S>,
) -> Result<FactionChainsResponse, E::Error>where
S: IsComplete,
pub async fn chainreport<S>(
&self,
builder: impl FnOnce(FactionChainreportRequestBuilder<Empty>) -> FactionChainreportRequestBuilder<S>,
) -> Result<FactionChainReportResponse, E::Error>where
S: IsComplete,
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,
pub async fn contributors<S>(
&self,
builder: impl FnOnce(FactionContributorsRequestBuilder<Empty>) -> FactionContributorsRequestBuilder<S>,
) -> Result<FactionContributorsResponse, E::Error>where
S: IsComplete,
pub async fn crimes<S>(
&self,
builder: impl FnOnce(FactionCrimesRequestBuilder<Empty>) -> FactionCrimesRequestBuilder<S>,
) -> Result<FactionCrimesResponse, E::Error>where
S: IsComplete,
pub async fn crime_for_id<S>(
&self,
id: ItemId,
builder: impl FnOnce(FactionCrimeForIdRequestBuilder<Empty>) -> FactionCrimeForIdRequestBuilder<S>,
) -> Result<FactionCrimeResponse, E::Error>where
S: IsComplete,
pub async fn hof<S>(
&self,
builder: impl FnOnce(FactionHofRequestBuilder<Empty>) -> FactionHofRequestBuilder<S>,
) -> Result<FactionHofResponse, E::Error>where
S: IsComplete,
pub async fn hof_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionHofForIdRequestBuilder<Empty>) -> FactionHofForIdRequestBuilder<S>,
) -> Result<FactionHofResponse, E::Error>where
S: IsComplete,
pub async fn members<S>(
&self,
builder: impl FnOnce(FactionMembersRequestBuilder<Empty>) -> FactionMembersRequestBuilder<S>,
) -> Result<FactionMembersResponse, E::Error>where
S: IsComplete,
pub async fn members_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionMembersForIdRequestBuilder<Empty>) -> FactionMembersForIdRequestBuilder<S>,
) -> Result<FactionMembersResponse, E::Error>where
S: IsComplete,
pub async fn news<S>(
&self,
builder: impl FnOnce(FactionNewsRequestBuilder<Empty>) -> FactionNewsRequestBuilder<S>,
) -> Result<FactionNewsResponse, E::Error>where
S: IsComplete,
pub async fn rankedwars<S>(
&self,
builder: impl FnOnce(FactionRankedwarsRequestBuilder<Empty>) -> FactionRankedwarsRequestBuilder<S>,
) -> Result<FactionRankedWarResponse, E::Error>where
S: IsComplete,
pub async fn rankedwars_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionRankedwarsForIdRequestBuilder<Empty>) -> FactionRankedwarsForIdRequestBuilder<S>,
) -> Result<FactionRankedWarResponse, E::Error>where
S: IsComplete,
pub async fn rankedwarreport_for_id<S>(
&self,
id: RankedWarId,
builder: impl FnOnce(FactionRankedwarreportForIdRequestBuilder<Empty>) -> FactionRankedwarreportForIdRequestBuilder<S>,
) -> Result<FactionRankedWarReportResponse, E::Error>where
S: IsComplete,
pub async fn revives<S>(
&self,
builder: impl FnOnce(FactionRevivesRequestBuilder<Empty>) -> FactionRevivesRequestBuilder<S>,
) -> Result<RevivesResponse, E::Error>where
S: IsComplete,
pub async fn revives_full<S>(
&self,
builder: impl FnOnce(FactionRevivesFullRequestBuilder<Empty>) -> FactionRevivesFullRequestBuilder<S>,
) -> Result<RevivesFullResponse, E::Error>where
S: IsComplete,
pub async fn stats<S>(
&self,
builder: impl FnOnce(FactionStatsRequestBuilder<Empty>) -> FactionStatsRequestBuilder<S>,
) -> Result<FactionStatsResponse, E::Error>where
S: IsComplete,
pub async fn upgrades<S>(
&self,
builder: impl FnOnce(FactionUpgradesRequestBuilder<Empty>) -> FactionUpgradesRequestBuilder<S>,
) -> Result<FactionUpgradesResponse, E::Error>where
S: IsComplete,
pub async fn wars<S>(
&self,
builder: impl FnOnce(FactionWarsRequestBuilder<Empty>) -> FactionWarsRequestBuilder<S>,
) -> Result<FactionWarsResponse, E::Error>where
S: IsComplete,
pub async fn wars_for_id<S>(
&self,
id: FactionId,
builder: impl FnOnce(FactionWarsForIdRequestBuilder<Empty>) -> FactionWarsForIdRequestBuilder<S>,
) -> Result<FactionWarsResponse, E::Error>where
S: IsComplete,
pub async fn lookup<S>(
&self,
builder: impl FnOnce(FactionLookupRequestBuilder<Empty>) -> FactionLookupRequestBuilder<S>,
) -> Result<FactionLookupResponse, E::Error>where
S: IsComplete,
pub async fn timestamp<S>(
&self,
builder: impl FnOnce(FactionTimestampRequestBuilder<Empty>) -> FactionTimestampRequestBuilder<S>,
) -> Result<TimestampResponse, E::Error>where
S: IsComplete,
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, E> Freeze for FactionScope<'e, E>
impl<'e, E> RefUnwindSafe for FactionScope<'e, E>where
E: RefUnwindSafe,
impl<'e, E> Send for FactionScope<'e, E>where
E: Sync,
impl<'e, E> Sync for FactionScope<'e, E>where
E: Sync,
impl<'e, E> Unpin for FactionScope<'e, E>
impl<'e, E> UnwindSafe for FactionScope<'e, E>where
E: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more