pub struct ApiClient { /* private fields */ }
Expand description
Client used in api calls. Fields are in ARCs. Holds authentication info, http client(reqwest), and url infos
Implementations§
Source§impl ApiClient
impl ApiClient
Sourcepub async fn query_esi<T>(&self, path: String) -> Result<Option<T>, EveEsiError>where
T: DeserializeOwned,
pub async fn query_esi<T>(&self, path: String) -> Result<Option<T>, EveEsiError>where
T: DeserializeOwned,
Api GET call on path. Response is deserialized in T with serde crate.
Sourcepub async fn query_esi_with_params<T>(
&self,
path: String,
params: HashMap<String, String>,
) -> Result<Option<T>, EveEsiError>where
T: DeserializeOwned,
pub async fn query_esi_with_params<T>(
&self,
path: String,
params: HashMap<String, String>,
) -> Result<Option<T>, EveEsiError>where
T: DeserializeOwned,
Api GET call on path, with url parameters. Response is deserialized in T with serde crate.
pub async fn query_auth<T>(&self, path: String) -> Result<T, EveEsiError>where
T: DeserializeOwned,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiClient
impl !RefUnwindSafe for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl !UnwindSafe for ApiClient
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