pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Endpoint: POST /authorize
Sourcepub async fn validate_token(
&self,
req: ValidateTokenRequest,
) -> Result<ValidateTokenResponse>
pub async fn validate_token( &self, req: ValidateTokenRequest, ) -> Result<ValidateTokenResponse>
Endpoint: PUT /validate-token
Source§impl Client
impl Client
Sourcepub async fn simulate_battle(
&self,
req: SimulateBattleRequest,
) -> Result<SimulateBattleResponse>
pub async fn simulate_battle( &self, req: SimulateBattleRequest, ) -> Result<SimulateBattleResponse>
Endpoint: PUT /simulate-battle
Source§impl Client
impl Client
Sourcepub async fn get_chat_history(
&self,
req: GetChatHistoryRequest,
) -> Result<GetChatHistoryResponse>
pub async fn get_chat_history( &self, req: GetChatHistoryRequest, ) -> Result<GetChatHistoryResponse>
Endpoint: PUT /get-chat-history
Sourcepub async fn push_chat_message(
&self,
req: PushChatMessageRequest,
) -> Result<PushChatMessageResponse>
pub async fn push_chat_message( &self, req: PushChatMessageRequest, ) -> Result<PushChatMessageResponse>
Endpoint: POST /push-chat-message
Source§impl Client
impl Client
Sourcepub async fn cheat_get_build_steps(
&self,
req: CheatGetBuildStepsRequest,
) -> Result<CheatGetBuildStepsResponse>
pub async fn cheat_get_build_steps( &self, req: CheatGetBuildStepsRequest, ) -> Result<CheatGetBuildStepsResponse>
Endpoint: PUT /cheat-get-build-steps
Source§impl Client
impl Client
Sourcepub async fn cheat_fill_world(&self, req: CheatFillWorldRequest) -> Result<()>
pub async fn cheat_fill_world(&self, req: CheatFillWorldRequest) -> Result<()>
Endpoint: POST /cheat-fill-world
Sourcepub async fn cheat_get_cities(
&self,
req: CheatGetCitiesRequest,
) -> Result<CheatGetCitiesResponse>
pub async fn cheat_get_cities( &self, req: CheatGetCitiesRequest, ) -> Result<CheatGetCitiesResponse>
Endpoint: PUT /cheat-get-cities
Sourcepub async fn cheat_get_city(
&self,
req: CheatGetCityRequest,
) -> Result<CheatGetCityResponse>
pub async fn cheat_get_city( &self, req: CheatGetCityRequest, ) -> Result<CheatGetCityResponse>
Endpoint: PUT /cheat-get-city
Sourcepub async fn cheat_set_stability(
&self,
req: CheatSetStabilityRequest,
) -> Result<()>
pub async fn cheat_set_stability( &self, req: CheatSetStabilityRequest, ) -> Result<()>
Endpoint: POST /cheat-set-stability
Sourcepub async fn cheat_spawn_city(&self, req: CheatSpawnCityRequest) -> Result<()>
pub async fn cheat_spawn_city(&self, req: CheatSpawnCityRequest) -> Result<()>
Endpoint: POST /cheat-spawn-city
Source§impl Client
impl Client
Sourcepub async fn cheat_get_academy_recruit_queue(
&self,
req: CheatGetAcademyRecruitQueueRequest,
) -> Result<CheatGetAcademyRecruitQueueResponse>
pub async fn cheat_get_academy_recruit_queue( &self, req: CheatGetAcademyRecruitQueueRequest, ) -> Result<CheatGetAcademyRecruitQueueResponse>
Endpoint: PUT /cheat-get-academy-recruit-queue
Sourcepub async fn cheat_get_academy_recruit_queues(
&self,
req: CheatGetAcademyRecruitQueuesRequest,
) -> Result<CheatGetAcademyRecruitQueuesResponse>
pub async fn cheat_get_academy_recruit_queues( &self, req: CheatGetAcademyRecruitQueuesRequest, ) -> Result<CheatGetAcademyRecruitQueuesResponse>
Endpoint: PUT /cheat-get-academy-recruit-queues
Sourcepub async fn cheat_get_all_academy_recruit_queues(
&self,
req: CheatGetAllAcademyRecruitQueuesRequest,
) -> Result<CheatGetAllAcademyRecruitQueuesResponse>
pub async fn cheat_get_all_academy_recruit_queues( &self, req: CheatGetAllAcademyRecruitQueuesRequest, ) -> Result<CheatGetAllAcademyRecruitQueuesResponse>
Endpoint: PUT /cheat-get-all-academy-recruit-queues
Sourcepub async fn cheat_get_all_prefecture_build_queues(
&self,
req: CheatGetAllPrefectureBuildQueuesRequest,
) -> Result<CheatGetAllPrefectureBuildQueuesResponse>
pub async fn cheat_get_all_prefecture_build_queues( &self, req: CheatGetAllPrefectureBuildQueuesRequest, ) -> Result<CheatGetAllPrefectureBuildQueuesResponse>
Endpoint: PUT /cheat-get-all-prefecture-build-queues
Sourcepub async fn cheat_get_all_stable_recruit_queues(
&self,
req: CheatGetAllStableRecruitQueuesRequest,
) -> Result<CheatGetAllStableRecruitQueuesResponse>
pub async fn cheat_get_all_stable_recruit_queues( &self, req: CheatGetAllStableRecruitQueuesRequest, ) -> Result<CheatGetAllStableRecruitQueuesResponse>
Endpoint: PUT /cheat-get-all-stable-recruit-queues
Sourcepub async fn cheat_get_infrastructure(
&self,
req: CheatGetInfrastructureRequest,
) -> Result<CheatGetInfrastructureResponse>
pub async fn cheat_get_infrastructure( &self, req: CheatGetInfrastructureRequest, ) -> Result<CheatGetInfrastructureResponse>
Endpoint: PUT /cheat-get-infrastructure
Sourcepub async fn cheat_get_prefecture_build_queue(
&self,
req: CheatGetPrefectureBuildQueueRequest,
) -> Result<CheatGetPrefectureBuildQueueResponse>
pub async fn cheat_get_prefecture_build_queue( &self, req: CheatGetPrefectureBuildQueueRequest, ) -> Result<CheatGetPrefectureBuildQueueResponse>
Endpoint: PUT /cheat-get-prefecture-build-queue
Sourcepub async fn cheat_get_prefecture_build_queues(
&self,
req: CheatGetPrefectureBuildQueuesRequest,
) -> Result<CheatGetPrefectureBuildQueuesResponse>
pub async fn cheat_get_prefecture_build_queues( &self, req: CheatGetPrefectureBuildQueuesRequest, ) -> Result<CheatGetPrefectureBuildQueuesResponse>
Endpoint: PUT /cheat-get-prefecture-build-queues
Sourcepub async fn cheat_get_stable_recruit_queue(
&self,
req: CheatGetStableRecruitQueueRequest,
) -> Result<CheatGetStableRecruitQueueResponse>
pub async fn cheat_get_stable_recruit_queue( &self, req: CheatGetStableRecruitQueueRequest, ) -> Result<CheatGetStableRecruitQueueResponse>
Endpoint: PUT /cheat-get-stable-recruit-queue
Sourcepub async fn cheat_get_stable_recruit_queues(
&self,
req: CheatGetStableRecruitQueuesRequest,
) -> Result<CheatGetStableRecruitQueuesResponse>
pub async fn cheat_get_stable_recruit_queues( &self, req: CheatGetStableRecruitQueuesRequest, ) -> Result<CheatGetStableRecruitQueuesResponse>
Endpoint: PUT /cheat-get-stable-recruit-queues
Sourcepub async fn cheat_get_storage_capacity(
&self,
req: CheatGetStorageCapacityRequest,
) -> Result<CheatGetStorageCapacityResponse>
pub async fn cheat_get_storage_capacity( &self, req: CheatGetStorageCapacityRequest, ) -> Result<CheatGetStorageCapacityResponse>
Endpoint: PUT /cheat-get-storage-capacity
Sourcepub async fn cheat_set_building_level(
&self,
req: CheatSetBuildingLevelRequest,
) -> Result<()>
pub async fn cheat_set_building_level( &self, req: CheatSetBuildingLevelRequest, ) -> Result<()>
Endpoint: POST /cheat-set-building-level
Sourcepub async fn cheat_set_max_infrastructure(
&self,
req: CheatSetMaxInfrastructureRequest,
) -> Result<()>
pub async fn cheat_set_max_infrastructure( &self, req: CheatSetMaxInfrastructureRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-infrastructure
Source§impl Client
impl Client
Sourcepub async fn cheat_set_market_fee(
&self,
req: CheatSetMarketFeeRequest,
) -> Result<()>
pub async fn cheat_set_market_fee( &self, req: CheatSetMarketFeeRequest, ) -> Result<()>
Endpoint: POST /cheat-set-market-fee
Sourcepub async fn cheat_set_market_vault_resources(
&self,
req: CheatSetMarketVaultResourcesRequest,
) -> Result<()>
pub async fn cheat_set_market_vault_resources( &self, req: CheatSetMarketVaultResourcesRequest, ) -> Result<()>
Endpoint: POST /cheat-set-market-vault-resources
Source§impl Client
impl Client
Sourcepub async fn cheat_get_idle_armies_at(
&self,
req: CheatGetIdleArmiesAtRequest,
) -> Result<CheatGetIdleArmiesAtResponse>
pub async fn cheat_get_idle_armies_at( &self, req: CheatGetIdleArmiesAtRequest, ) -> Result<CheatGetIdleArmiesAtResponse>
Endpoint: PUT /cheat-get-idle-armies-at
Sourcepub async fn cheat_get_idle_personnel_at(
&self,
req: CheatGetIdlePersonnelAtRequest,
) -> Result<CheatGetIdlePersonnelAtResponse>
pub async fn cheat_get_idle_personnel_at( &self, req: CheatGetIdlePersonnelAtRequest, ) -> Result<CheatGetIdlePersonnelAtResponse>
Endpoint: PUT /cheat-get-idle-personnel-at
Sourcepub async fn cheat_get_maneuvers(
&self,
req: CheatGetManeuversRequest,
) -> Result<CheatGetManeuversResponse>
pub async fn cheat_get_maneuvers( &self, req: CheatGetManeuversRequest, ) -> Result<CheatGetManeuversResponse>
Endpoint: PUT /cheat-get-maneuvers
Sourcepub async fn cheat_get_maneuvers_of(
&self,
req: CheatGetManeuversOfRequest,
) -> Result<CheatGetManeuversOfResponse>
pub async fn cheat_get_maneuvers_of( &self, req: CheatGetManeuversOfRequest, ) -> Result<CheatGetManeuversOfResponse>
Endpoint: PUT /cheat-get-maneuvers-of
Sourcepub async fn cheat_spawn_personnel(
&self,
req: CheatSpawnPersonnelRequest,
) -> Result<()>
pub async fn cheat_spawn_personnel( &self, req: CheatSpawnPersonnelRequest, ) -> Result<()>
Endpoint: POST /cheat-spawn-personnel
Source§impl Client
impl Client
Sourcepub async fn cheat_get_ethics(
&self,
req: CheatGetEthicsRequest,
) -> Result<CheatGetEthicsResponse>
pub async fn cheat_get_ethics( &self, req: CheatGetEthicsRequest, ) -> Result<CheatGetEthicsResponse>
Endpoint: PUT /cheat-get-ethics
Sourcepub async fn cheat_set_bot_ethics(
&self,
req: CheatSetBotEthicsRequest,
) -> Result<()>
pub async fn cheat_set_bot_ethics( &self, req: CheatSetBotEthicsRequest, ) -> Result<()>
Endpoint: POST /cheat-set-bot-ethics
Sourcepub async fn cheat_spawn_bot(
&self,
req: CheatSpawnBotRequest,
) -> Result<CheatSpawnBotResponse>
pub async fn cheat_spawn_bot( &self, req: CheatSpawnBotRequest, ) -> Result<CheatSpawnBotResponse>
Endpoint: POST /cheat-spawn-bot
Source§impl Client
impl Client
Sourcepub async fn cheat_get_player(
&self,
req: CheatGetPlayerRequest,
) -> Result<CheatGetPlayerResponse>
pub async fn cheat_get_player( &self, req: CheatGetPlayerRequest, ) -> Result<CheatGetPlayerResponse>
Endpoint: PUT /cheat-get-player
Sourcepub async fn cheat_get_players(
&self,
req: CheatGetPlayersRequest,
) -> Result<CheatGetPlayersResponse>
pub async fn cheat_get_players( &self, req: CheatGetPlayersRequest, ) -> Result<CheatGetPlayersResponse>
Endpoint: PUT /cheat-get-players
Source§impl Client
impl Client
Sourcepub async fn cheat_get_resources(
&self,
req: CheatGetResourcesRequest,
) -> Result<CheatGetResourcesResponse>
pub async fn cheat_get_resources( &self, req: CheatGetResourcesRequest, ) -> Result<CheatGetResourcesResponse>
Endpoint: PUT /cheat-get-resources
Sourcepub async fn cheat_set_food(&self, req: CheatSetFoodRequest) -> Result<()>
pub async fn cheat_set_food(&self, req: CheatSetFoodRequest) -> Result<()>
Endpoint: POST /cheat-set-food
Sourcepub async fn cheat_set_iron(&self, req: CheatSetIronRequest) -> Result<()>
pub async fn cheat_set_iron(&self, req: CheatSetIronRequest) -> Result<()>
Endpoint: POST /cheat-set-iron
Sourcepub async fn cheat_set_max_food(
&self,
req: CheatSetMaxFoodRequest,
) -> Result<()>
pub async fn cheat_set_max_food( &self, req: CheatSetMaxFoodRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-food
Sourcepub async fn cheat_set_max_iron(
&self,
req: CheatSetMaxIronRequest,
) -> Result<()>
pub async fn cheat_set_max_iron( &self, req: CheatSetMaxIronRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-iron
Sourcepub async fn cheat_set_max_resources(
&self,
req: CheatSetMaxResourcesRequest,
) -> Result<()>
pub async fn cheat_set_max_resources( &self, req: CheatSetMaxResourcesRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-resources
Sourcepub async fn cheat_set_max_silo_resources(
&self,
req: CheatSetMaxSiloResourcesRequest,
) -> Result<()>
pub async fn cheat_set_max_silo_resources( &self, req: CheatSetMaxSiloResourcesRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-silo-resources
Sourcepub async fn cheat_set_max_stone(
&self,
req: CheatSetMaxStoneRequest,
) -> Result<()>
pub async fn cheat_set_max_stone( &self, req: CheatSetMaxStoneRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-stone
Sourcepub async fn cheat_set_max_warehouse_resources(
&self,
req: CheatSetMaxWarehouseResourcesRequest,
) -> Result<()>
pub async fn cheat_set_max_warehouse_resources( &self, req: CheatSetMaxWarehouseResourcesRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-warehouse-resources
Sourcepub async fn cheat_set_max_wood(
&self,
req: CheatSetMaxWoodRequest,
) -> Result<()>
pub async fn cheat_set_max_wood( &self, req: CheatSetMaxWoodRequest, ) -> Result<()>
Endpoint: POST /cheat-set-max-wood
Sourcepub async fn cheat_set_resources(
&self,
req: CheatSetResourcesRequest,
) -> Result<()>
pub async fn cheat_set_resources( &self, req: CheatSetResourcesRequest, ) -> Result<()>
Endpoint: POST /cheat-set-resources
Sourcepub async fn cheat_set_stone(&self, req: CheatSetStoneRequest) -> Result<()>
pub async fn cheat_set_stone(&self, req: CheatSetStoneRequest) -> Result<()>
Endpoint: POST /cheat-set-stone
Sourcepub async fn cheat_set_wood(&self, req: CheatSetWoodRequest) -> Result<()>
pub async fn cheat_set_wood(&self, req: CheatSetWoodRequest) -> Result<()>
Endpoint: POST /cheat-set-wood
Source§impl Client
impl Client
Sourcepub async fn cheat_skip_round(&self, req: CheatSkipRoundRequest) -> Result<()>
pub async fn cheat_skip_round(&self, req: CheatSkipRoundRequest) -> Result<()>
Endpoint: POST /cheat-skip-round
Source§impl Client
impl Client
Sourcepub async fn get_cities(
&self,
req: GetCitiesRequest,
) -> Result<GetCitiesResponse>
pub async fn get_cities( &self, req: GetCitiesRequest, ) -> Result<GetCitiesResponse>
Endpoint: PUT /get-cities
Sourcepub async fn get_city(&self, req: GetCityRequest) -> Result<GetCityResponse>
pub async fn get_city(&self, req: GetCityRequest) -> Result<GetCityResponse>
Endpoint: PUT /get-city
Sourcepub async fn get_city_score(
&self,
req: GetCityScoreRequest,
) -> Result<GetCityScoreResponse>
pub async fn get_city_score( &self, req: GetCityScoreRequest, ) -> Result<GetCityScoreResponse>
Endpoint: PUT /get-city-score
Sourcepub async fn get_public_cities(
&self,
req: GetPublicCitiesRequest,
) -> Result<GetPublicCitiesResponse>
pub async fn get_public_cities( &self, req: GetPublicCitiesRequest, ) -> Result<GetPublicCitiesResponse>
Endpoint: PUT /get-public-cities
Sourcepub async fn get_public_city(
&self,
req: GetPublicCityRequest,
) -> Result<GetPublicCityResponse>
pub async fn get_public_city( &self, req: GetPublicCityRequest, ) -> Result<GetPublicCityResponse>
Endpoint: PUT /get-public-city
Sourcepub async fn rename_city(&self, req: RenameCityRequest) -> Result<()>
pub async fn rename_city(&self, req: RenameCityRequest) -> Result<()>
Endpoint: POST /rename-city
Sourcepub async fn search_city(
&self,
req: SearchCityRequest,
) -> Result<SearchCityResponse>
pub async fn search_city( &self, req: SearchCityRequest, ) -> Result<SearchCityResponse>
Endpoint: PUT /search-city
Sourcepub async fn search_public_city(
&self,
req: SearchPublicCityRequest,
) -> Result<SearchPublicCityResponse>
pub async fn search_public_city( &self, req: SearchPublicCityRequest, ) -> Result<SearchPublicCityResponse>
Endpoint: PUT /search-public-city
Source§impl Client
impl Client
Sourcepub async fn get_continent_size(
&self,
req: GetContinentSizeRequest,
) -> Result<GetContinentSizeResponse>
pub async fn get_continent_size( &self, req: GetContinentSizeRequest, ) -> Result<GetContinentSizeResponse>
Endpoint: PUT /get-continent-size
Sourcepub async fn get_public_field(
&self,
req: GetPublicFieldRequest,
) -> Result<GetPublicFieldResponse>
pub async fn get_public_field( &self, req: GetPublicFieldRequest, ) -> Result<GetPublicFieldResponse>
Endpoint: PUT /get-public-field
Sourcepub async fn get_public_fields(
&self,
req: GetPublicFieldsRequest,
) -> Result<GetPublicFieldsResponse>
pub async fn get_public_fields( &self, req: GetPublicFieldsRequest, ) -> Result<GetPublicFieldsResponse>
Endpoint: PUT /get-public-fields
Source§impl Client
impl Client
Sourcepub async fn add_academy_recruit_order(
&self,
req: AddAcademyRecruitOrderRequest,
) -> Result<()>
pub async fn add_academy_recruit_order( &self, req: AddAcademyRecruitOrderRequest, ) -> Result<()>
Endpoint: POST /add-academy-recruit-order
Sourcepub async fn cancel_academy_recruit_order(
&self,
req: CancelAcademyRecruitOrderRequest,
) -> Result<()>
pub async fn cancel_academy_recruit_order( &self, req: CancelAcademyRecruitOrderRequest, ) -> Result<()>
Endpoint: POST /cancel-academy-recruit-order
Sourcepub async fn get_academy_recruit_catalog(
&self,
req: GetAcademyRecruitCatalogRequest,
) -> Result<GetAcademyRecruitCatalogResponse>
pub async fn get_academy_recruit_catalog( &self, req: GetAcademyRecruitCatalogRequest, ) -> Result<GetAcademyRecruitCatalogResponse>
Endpoint: PUT /get-academy-recruit-catalog
Source§impl Client
impl Client
Sourcepub async fn toggle_building(&self, req: ToggleBuildingRequest) -> Result<()>
pub async fn toggle_building(&self, req: ToggleBuildingRequest) -> Result<()>
Endpoint: POST /toggle-building
Source§impl Client
impl Client
Sourcepub async fn add_prefecture_build_order(
&self,
req: AddPrefectureBuildOrderRequest,
) -> Result<()>
pub async fn add_prefecture_build_order( &self, req: AddPrefectureBuildOrderRequest, ) -> Result<()>
Endpoint: POST /add-prefecture-build-order
Sourcepub async fn cancel_prefecture_build_order(
&self,
req: CancelPrefectureBuildOrderRequest,
) -> Result<()>
pub async fn cancel_prefecture_build_order( &self, req: CancelPrefectureBuildOrderRequest, ) -> Result<()>
Endpoint: POST /cancel-prefecture-build-order
Sourcepub async fn get_prefecture_build_catalog(
&self,
req: GetPrefectureBuildCatalogRequest,
) -> Result<GetPrefectureBuildCatalogResponse>
pub async fn get_prefecture_build_catalog( &self, req: GetPrefectureBuildCatalogRequest, ) -> Result<GetPrefectureBuildCatalogResponse>
Endpoint: PUT /get-prefecture-build-catalog
Source§impl Client
impl Client
Sourcepub async fn add_stable_recruit_order(
&self,
req: AddStableRecruitOrderRequest,
) -> Result<()>
pub async fn add_stable_recruit_order( &self, req: AddStableRecruitOrderRequest, ) -> Result<()>
Endpoint: POST /add-stable-recruit-order
Sourcepub async fn cancel_stable_recruit_order(
&self,
req: CancelStableRecruitOrderRequest,
) -> Result<()>
pub async fn cancel_stable_recruit_order( &self, req: CancelStableRecruitOrderRequest, ) -> Result<()>
Endpoint: POST /cancel-stable-recruit-order
Sourcepub async fn get_stable_recruit_catalog(
&self,
req: GetStableRecruitCatalogRequest,
) -> Result<GetStableRecruitCatalogResponse>
pub async fn get_stable_recruit_catalog( &self, req: GetStableRecruitCatalogRequest, ) -> Result<GetStableRecruitCatalogResponse>
Endpoint: PUT /get-stable-recruit-catalog
Source§impl Client
impl Client
Sourcepub async fn add_workshop_recruit_order(
&self,
req: AddWorkshopRecruitOrderRequest,
) -> Result<()>
pub async fn add_workshop_recruit_order( &self, req: AddWorkshopRecruitOrderRequest, ) -> Result<()>
Endpoint: POST /add-workshop-recruit-order
Sourcepub async fn cancel_workshop_recruit_order(
&self,
req: CancelWorkshopRecruitOrderRequest,
) -> Result<()>
pub async fn cancel_workshop_recruit_order( &self, req: CancelWorkshopRecruitOrderRequest, ) -> Result<()>
Endpoint: POST /cancel-workshop-recruit-order
Sourcepub async fn get_workshop_recruit_catalog(
&self,
req: GetWorkshopRecruitCatalogRequest,
) -> Result<GetWorkshopRecruitCatalogResponse>
pub async fn get_workshop_recruit_catalog( &self, req: GetWorkshopRecruitCatalogRequest, ) -> Result<GetWorkshopRecruitCatalogResponse>
Endpoint: PUT /get-workshop-recruit-catalog
Source§impl Client
impl Client
Sourcepub async fn buy_resources(&self, req: BuyResourcesRequest) -> Result<()>
pub async fn buy_resources(&self, req: BuyResourcesRequest) -> Result<()>
Endpoint: POST /buy-resources
Sourcepub async fn get_market(
&self,
req: GetMarketRequest,
) -> Result<GetMarketResponse>
pub async fn get_market( &self, req: GetMarketRequest, ) -> Result<GetMarketResponse>
Endpoint: PUT /get-market
Sourcepub async fn get_market_fee(
&self,
req: GetMarketFeeRequest,
) -> Result<GetMarketFeeResponse>
pub async fn get_market_fee( &self, req: GetMarketFeeRequest, ) -> Result<GetMarketFeeResponse>
Endpoint: PUT /get-market-fee
Sourcepub async fn sell_resources(&self, req: SellResourcesRequest) -> Result<()>
pub async fn sell_resources(&self, req: SellResourcesRequest) -> Result<()>
Endpoint: POST /sell-resources
Sourcepub async fn send_resources(&self, req: SendResourcesRequest) -> Result<()>
pub async fn send_resources(&self, req: SendResourcesRequest) -> Result<()>
Endpoint: POST /send-resources
Source§impl Client
impl Client
Sourcepub async fn cancel_maneuver(&self, req: CancelManeuverRequest) -> Result<()>
pub async fn cancel_maneuver(&self, req: CancelManeuverRequest) -> Result<()>
Endpoint: POST /cancel-maneuver
Sourcepub async fn get_armies(
&self,
req: GetArmiesRequest,
) -> Result<GetArmiesResponse>
pub async fn get_armies( &self, req: GetArmiesRequest, ) -> Result<GetArmiesResponse>
Endpoint: PUT /get-armies
Sourcepub async fn get_army(&self, req: GetArmyRequest) -> Result<GetArmyResponse>
pub async fn get_army(&self, req: GetArmyRequest) -> Result<GetArmyResponse>
Endpoint: PUT /get-army
Sourcepub async fn get_army_owner(
&self,
req: GetArmyOwnerRequest,
) -> Result<GetArmyOwnerResponse>
pub async fn get_army_owner( &self, req: GetArmyOwnerRequest, ) -> Result<GetArmyOwnerResponse>
Endpoint: PUT /get-army-owner
Sourcepub async fn get_idle_armies_at(
&self,
req: GetIdleArmiesAtRequest,
) -> Result<GetIdleArmiesAtResponse>
pub async fn get_idle_armies_at( &self, req: GetIdleArmiesAtRequest, ) -> Result<GetIdleArmiesAtResponse>
Endpoint: PUT /get-idle-armies-at
Sourcepub async fn get_idle_armies_coords(
&self,
req: GetIdleArmiesCoordsRequest,
) -> Result<GetIdleArmiesCoordsResponse>
pub async fn get_idle_armies_coords( &self, req: GetIdleArmiesCoordsRequest, ) -> Result<GetIdleArmiesCoordsResponse>
Endpoint: PUT /get-idle-armies-coords
Sourcepub async fn get_maneuver(
&self,
req: GetManeuverRequest,
) -> Result<GetManeuverResponse>
pub async fn get_maneuver( &self, req: GetManeuverRequest, ) -> Result<GetManeuverResponse>
Endpoint: PUT /get-maneuver
Sourcepub async fn request_maneuver(
&self,
req: RequestManeuverRequest,
) -> Result<RequestManeuverResponse>
pub async fn request_maneuver( &self, req: RequestManeuverRequest, ) -> Result<RequestManeuverResponse>
Endpoint: POST /request-maneuver
Source§impl Client
impl Client
Sourcepub async fn get_bot_coords(
&self,
req: GetBotCoordsRequest,
) -> Result<GetBotCoordsResponse>
pub async fn get_bot_coords( &self, req: GetBotCoordsRequest, ) -> Result<GetBotCoordsResponse>
Endpoint: PUT /get-bot-coords
Sourcepub async fn get_public_bot(
&self,
req: GetPublicBotRequest,
) -> Result<GetPublicBotResponse>
pub async fn get_public_bot( &self, req: GetPublicBotRequest, ) -> Result<GetPublicBotResponse>
Endpoint: PUT /get-public-bot
Sourcepub async fn get_public_bots(
&self,
req: GetPublicBotsRequest,
) -> Result<GetPublicBotsResponse>
pub async fn get_public_bots( &self, req: GetPublicBotsRequest, ) -> Result<GetPublicBotsResponse>
Endpoint: PUT /get-public-bots
Source§impl Client
impl Client
Sourcepub async fn get_precursor_coords(
&self,
req: GetPrecursorCoordsRequest,
) -> Result<GetPrecursorCoordsResponse>
pub async fn get_precursor_coords( &self, req: GetPrecursorCoordsRequest, ) -> Result<GetPrecursorCoordsResponse>
Endpoint: PUT /get-precursor-coords
Sourcepub async fn get_public_precursor(
&self,
req: GetPublicPrecursorRequest,
) -> Result<GetPublicPrecursorResponse>
pub async fn get_public_precursor( &self, req: GetPublicPrecursorRequest, ) -> Result<GetPublicPrecursorResponse>
Endpoint: PUT /get-public-precursor
Sourcepub async fn get_public_precursors(
&self,
req: GetPublicPrecursorsRequest,
) -> Result<GetPublicPrecursorsResponse>
pub async fn get_public_precursors( &self, req: GetPublicPrecursorsRequest, ) -> Result<GetPublicPrecursorsResponse>
Endpoint: PUT /get-public-precursors
Source§impl Client
impl Client
Sourcepub async fn get_player(
&self,
req: GetPlayerRequest,
) -> Result<GetPlayerResponse>
pub async fn get_player( &self, req: GetPlayerRequest, ) -> Result<GetPlayerResponse>
Endpoint: PUT /get-player
Sourcepub async fn get_player_coords(
&self,
req: GetPlayerCoordsRequest,
) -> Result<GetPlayerCoordsResponse>
pub async fn get_player_coords( &self, req: GetPlayerCoordsRequest, ) -> Result<GetPlayerCoordsResponse>
Endpoint: PUT /get-player-coords
Sourcepub async fn get_player_ids(
&self,
req: GetPlayerIdsRequest,
) -> Result<GetPlayerIdsResponse>
pub async fn get_player_ids( &self, req: GetPlayerIdsRequest, ) -> Result<GetPlayerIdsResponse>
Endpoint: PUT /get-player-ids
Sourcepub async fn get_player_maintenance(
&self,
req: GetPlayerMaintenanceRequest,
) -> Result<GetPlayerMaintenanceResponse>
pub async fn get_player_maintenance( &self, req: GetPlayerMaintenanceRequest, ) -> Result<GetPlayerMaintenanceResponse>
Endpoint: PUT /get-player-maintenance
Sourcepub async fn get_player_military(
&self,
req: GetPlayerMilitaryRequest,
) -> Result<GetPlayerMilitaryResponse>
pub async fn get_player_military( &self, req: GetPlayerMilitaryRequest, ) -> Result<GetPlayerMilitaryResponse>
Endpoint: PUT /get-player-military
Sourcepub async fn get_player_status(
&self,
req: GetPlayerStatusRequest,
) -> Result<GetPlayerStatusResponse>
pub async fn get_player_status( &self, req: GetPlayerStatusRequest, ) -> Result<GetPlayerStatusResponse>
Endpoint: PUT /get-player-status
Sourcepub async fn get_player_storage_capacity(
&self,
req: GetPlayerStorageCapacityRequest,
) -> Result<GetPlayerStorageCapacityResponse>
pub async fn get_player_storage_capacity( &self, req: GetPlayerStorageCapacityRequest, ) -> Result<GetPlayerStorageCapacityResponse>
Endpoint: PUT /get-player-storage-capacity
Sourcepub async fn get_player_worlds(
&self,
req: GetPlayerWorldsRequest,
) -> Result<GetPlayerWorldsResponse>
pub async fn get_player_worlds( &self, req: GetPlayerWorldsRequest, ) -> Result<GetPlayerWorldsResponse>
Endpoint: PUT /get-player-worlds
Sourcepub async fn get_public_player(
&self,
req: GetPublicPlayerRequest,
) -> Result<GetPublicPlayerResponse>
pub async fn get_public_player( &self, req: GetPublicPlayerRequest, ) -> Result<GetPublicPlayerResponse>
Endpoint: PUT /get-public-player
Sourcepub async fn get_public_players(
&self,
req: GetPublicPlayersRequest,
) -> Result<GetPublicPlayersResponse>
pub async fn get_public_players( &self, req: GetPublicPlayersRequest, ) -> Result<GetPublicPlayersResponse>
Endpoint: PUT /get-public-players
Sourcepub async fn player_exists(
&self,
req: PlayerExistsRequest,
) -> Result<PlayerExistsResponse>
pub async fn player_exists( &self, req: PlayerExistsRequest, ) -> Result<PlayerExistsResponse>
Endpoint: PUT /player-exists
Sourcepub async fn set_player_status(&self, req: SetPlayerStatusRequest) -> Result<()>
pub async fn set_player_status(&self, req: SetPlayerStatusRequest) -> Result<()>
Endpoint: POST /set-player-status
Sourcepub async fn spawn_player(&self, req: SpawnPlayerRequest) -> Result<()>
pub async fn spawn_player(&self, req: SpawnPlayerRequest) -> Result<()>
Endpoint: POST /spawn-player
Source§impl Client
impl Client
Sourcepub async fn get_rank(&self, req: GetRankRequest) -> Result<GetRankResponse>
pub async fn get_rank(&self, req: GetRankRequest) -> Result<GetRankResponse>
Endpoint: PUT /get-rank
Sourcepub async fn get_ranking(
&self,
req: GetRankingRequest,
) -> Result<GetRankingResponse>
pub async fn get_ranking( &self, req: GetRankingRequest, ) -> Result<GetRankingResponse>
Endpoint: PUT /get-ranking
Source§impl Client
impl Client
Sourcepub async fn forward_report(&self, req: ForwardReportRequest) -> Result<()>
pub async fn forward_report(&self, req: ForwardReportRequest) -> Result<()>
Endpoint: POST /forward-report
Source§impl Client
impl Client
Sourcepub async fn get_round(&self, req: GetRoundRequest) -> Result<GetRoundResponse>
pub async fn get_round(&self, req: GetRoundRequest) -> Result<GetRoundResponse>
Endpoint: PUT /get-round
Sourcepub async fn set_player_ready(
&self,
req: SetPlayerReadyRequest,
) -> Result<SetPlayerReadyResponse>
pub async fn set_player_ready( &self, req: SetPlayerReadyRequest, ) -> Result<SetPlayerReadyResponse>
Endpoint: POST /set-player-ready
Sourcepub async fn start_round(
&self,
req: StartRoundRequest,
) -> Result<StartRoundResponse>
pub async fn start_round( &self, req: StartRoundRequest, ) -> Result<StartRoundResponse>
Endpoint: POST /start-round
Source§impl Client
impl Client
Sourcepub async fn create_user(&self, req: CreateUserRequest) -> Result<()>
pub async fn create_user(&self, req: CreateUserRequest) -> Result<()>
Endpoint: POST /create-user
Sourcepub async fn user_exists(
&self,
req: UserExistsRequest,
) -> Result<UserExistsResponse>
pub async fn user_exists( &self, req: UserExistsRequest, ) -> Result<UserExistsResponse>
Endpoint: PUT /user-exists
Source§impl Client
impl Client
Sourcepub async fn create_remote_world(
&self,
req: CreateRemoteWorldRequest,
) -> Result<CreateRemoteWorldResponse>
pub async fn create_remote_world( &self, req: CreateRemoteWorldRequest, ) -> Result<CreateRemoteWorldResponse>
Endpoint: POST /create-remote-world
Sourcepub async fn delete_remote_world(
&self,
req: DeleteRemoteWorldRequest,
) -> Result<()>
pub async fn delete_remote_world( &self, req: DeleteRemoteWorldRequest, ) -> Result<()>
Endpoint: POST /delete-remote-world
Sourcepub async fn get_remote_world(
&self,
req: GetRemoteWorldRequest,
) -> Result<GetRemoteWorldResponse>
pub async fn get_remote_world( &self, req: GetRemoteWorldRequest, ) -> Result<GetRemoteWorldResponse>
Endpoint: PUT /get-remote-world
Sourcepub async fn get_remote_world_limit(
&self,
) -> Result<GetRemoteWorldLimitResponse>
pub async fn get_remote_world_limit( &self, ) -> Result<GetRemoteWorldLimitResponse>
Endpoint: GET /get-remote-world-limit
Sourcepub async fn get_remote_world_limit_per_user(
&self,
) -> Result<GetRemoteWorldLimitPerUserResponse>
pub async fn get_remote_world_limit_per_user( &self, ) -> Result<GetRemoteWorldLimitPerUserResponse>
Endpoint: GET /get-remote-world-limit-per-user
Sourcepub async fn get_remote_worlds(&self) -> Result<GetRemoteWorldsResponse>
pub async fn get_remote_worlds(&self) -> Result<GetRemoteWorldsResponse>
Endpoint: GET /get-remote-worlds
Sourcepub async fn get_world_bots(
&self,
req: GetWorldBotsRequest,
) -> Result<GetWorldBotsResponse>
pub async fn get_world_bots( &self, req: GetWorldBotsRequest, ) -> Result<GetWorldBotsResponse>
Endpoint: PUT /get-world-bots
Sourcepub async fn get_world_config(
&self,
req: GetWorldConfigRequest,
) -> Result<GetWorldConfigResponse>
pub async fn get_world_config( &self, req: GetWorldConfigRequest, ) -> Result<GetWorldConfigResponse>
Endpoint: PUT /get-world-config
Sourcepub async fn get_world_personnel(
&self,
req: GetWorldPersonnelRequest,
) -> Result<GetWorldPersonnelResponse>
pub async fn get_world_personnel( &self, req: GetWorldPersonnelRequest, ) -> Result<GetWorldPersonnelResponse>
Endpoint: PUT /get-world-personnel
Sourcepub async fn get_world_players(
&self,
req: GetWorldPlayersRequest,
) -> Result<GetWorldPlayersResponse>
pub async fn get_world_players( &self, req: GetWorldPlayersRequest, ) -> Result<GetWorldPlayersResponse>
Endpoint: PUT /get-world-players
Sourcepub async fn get_world_precursors(
&self,
req: GetWorldPrecursorsRequest,
) -> Result<GetWorldPrecursorsResponse>
pub async fn get_world_precursors( &self, req: GetWorldPrecursorsRequest, ) -> Result<GetWorldPrecursorsResponse>
Endpoint: PUT /get-world-precursors
Sourcepub async fn get_world_rulers(
&self,
req: GetWorldRulersRequest,
) -> Result<GetWorldRulersResponse>
pub async fn get_world_rulers( &self, req: GetWorldRulersRequest, ) -> Result<GetWorldRulersResponse>
Endpoint: PUT /get-world-rulers
Sourcepub async fn get_world_stats(
&self,
req: GetWorldStatsRequest,
) -> Result<GetWorldStatsResponse>
pub async fn get_world_stats( &self, req: GetWorldStatsRequest, ) -> Result<GetWorldStatsResponse>
Endpoint: PUT /get-world-stats
Sourcepub async fn save_local_world(&self, req: SaveLocalWorldRequest) -> Result<()>
pub async fn save_local_world(&self, req: SaveLocalWorldRequest) -> Result<()>
Endpoint: POST /save-local-world
Source§impl Client
impl Client
pub fn new(server: ServerAddr) -> Self
pub fn new_local(addr: SocketAddrV4) -> Self
pub fn new_remote() -> Self
pub async fn update<OnEvent>( &mut self, options: ClientOptions, on_event: Option<OnEvent>, ) -> Result<()>
pub async fn stop(&mut self)
pub fn server_addr(&self) -> ServerAddr
pub fn world(&self) -> Option<WorldId>
pub fn user_agent(&self) -> &str
pub fn set_user_agent(&mut self, user_agent: &str)
pub fn is_local(&self) -> bool
pub fn is_remote(&self) -> bool
Sourcepub async fn get_server_kind(&self) -> Result<GetServerKindResponse>
pub async fn get_server_kind(&self) -> Result<GetServerKindResponse>
Endpoint: GET /get-server-kind
Sourcepub async fn version(&self) -> Result<VersionResponse>
pub async fn version(&self) -> Result<VersionResponse>
Endpoint: GET /version
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.