Skip to main content

spacetraders_client/endpoints/systems/
data.rs

1use crate::client::{ClientError, RequestPriority, StClient};
2use crate::types;
3
4impl StClient {
5    pub async fn get_supply_chain(&self) -> Result<types::GetSupplyChainResponse, ClientError> {
6        self.get_supply_chain_with_priority(RequestPriority::Normal)
7            .await
8    }
9
10    pub async fn get_supply_chain_with_priority(
11        &self,
12        priority: RequestPriority,
13    ) -> Result<types::GetSupplyChainResponse, ClientError> {
14        self.send("get_supply_chain", priority, || {
15            self.inner.get_supply_chain()
16        })
17        .await
18    }
19}