pub struct EveApi { /* private fields */ }Expand description
The main struct you will use.
Eve_api struct is backed internally by ARCs, you can use it in async, and clone it with little overhead.
async {
let client_id = std::env::var("CLIENT_ID").expect("CLIENT_ID needed as environment variable");
let client_secret = std::env::var("CLIENT_SECRET").expect("CLIENT_SECRET missing");
let scopes = vec!["publicData"];
let params = EveApiParam {
client_id,
client_secret,
scopes,
token_path: None,
};
let eve_api = eve_esi_api::EveApi::new(params).await?;
println!("logged as {}", eve_api.character().character_name);
let regions = eve_esi_api::universe::all_regions(eve_api.client()).await?;
}Api calls take a reference to a client. They are grouped by eve-esi groups structure : universe, wallet, market are currently implemented
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EveApi
impl !RefUnwindSafe for EveApi
impl Send for EveApi
impl Sync for EveApi
impl Unpin for EveApi
impl UnsafeUnpin for EveApi
impl !UnwindSafe for EveApi
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