pub trait CoreApiClient: NadeoApiClient {
// Provided methods
async fn get_zones(&self) -> Result<Vec<Zone>, NadeoError> { ... }
async fn get_zone_tree(&self) -> Result<&ZoneTree, NadeoError> { ... }
async fn get_user_zones<T: Into<String> + Clone>(
&self,
player_ids: &[T],
) -> Result<HashMap<String, PlayerZone>, NadeoError> { ... }
}
Expand description
API calls for the Core API
Provided Methods§
Sourceasync fn get_zone_tree(&self) -> Result<&ZoneTree, NadeoError>
async fn get_zone_tree(&self) -> Result<&ZoneTree, NadeoError>
Get the zone tree – cached!
Sourceasync fn get_user_zones<T: Into<String> + Clone>(
&self,
player_ids: &[T],
) -> Result<HashMap<String, PlayerZone>, NadeoError>
async fn get_user_zones<T: Into<String> + Clone>( &self, player_ids: &[T], ) -> Result<HashMap<String, PlayerZone>, NadeoError>
Get players’ zone details
https://webservices.openplanet.dev/core/accounts/zones
calls /accounts/zones/?accountIdList={accountIdList}
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.