Esi

Struct Esi 

Source
pub struct Esi { /* private fields */ }

Implementations§

Source§

impl Esi

Source

pub async fn get_alliances( &self, etag: Option<&str>, ) -> EsiResult<Response<Vec<i32>>>

List all active player alliances esi: https://esi.evetech.net/latest/alliances/

Source

pub async fn get_alliance( &self, alliance_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Alliance>>

Public information about an alliance esi: https://esi.evetech.net/latest/alliances/{alliance_id}/

Source

pub async fn get_alliance_corporations( &self, alliance_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Vec<i32>>>

List all current member corporations of an alliance esi: https://esi.evetech.net/latest/alliances/{alliance_id}/corporations/

Source

pub async fn get_alliance_icons( &self, alliance_id: i32, etag: Option<&str>, ) -> EsiResult<Response<AllianceIcon>>

Get the icon urls for a alliance esi: https://esi.evetech.net/latest/alliances/{alliance_id}/icons/

Source§

impl Esi

Source

pub async fn get_character_assets( &self, character_id: i32, access_token: &str, page: Option<i32>, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<CharacterAsset>>>>

Requires the following scope: esi-assets.read_assets.v1 Return a list of the characters assets esi: https://esi.evetech.net/latest/characters/{character_id}/assets/

Source§

impl Esi

Source§

impl Esi

Source

pub async fn get_character( &self, character_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Character>>

Public information about a character esi: https://esi.evetech.net/latest/characters/{character_id}/

Source

pub async fn get_character_agents_research( &self, character_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Vec<i32>>>

Requires the following scope: esi-characters.read_agents_research.v1 Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate) esi: https://esi.evetech.net/latest/characters/{character_id}/agents_research/

Source

pub async fn post_character_affiliations( &self, character_ids: Vec<i32>, ) -> EsiResult<Vec<CharacterAffiliation>>

Bulk lookup of character IDs to corporation, alliance and faction Requires the following scope: esi-characters.read_corporation_roles.v1 esi: https://esi.evetech.net/latest/characters/{character_ids}/affiliation/

Source§

impl Esi

Source

pub async fn get_corporation( &self, corporation_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Corporation>>

Source

pub async fn get_corporation_structures( &self, corporation_id: i32, access_token: &str, etag: Option<&str>, ) -> EsiResult<Response<Vec<CorporationStructure>>>

Source§

impl Esi

Source

pub async fn get_character_recent_killmails( &self, character_id: i32, access_token: &str, etag: Option<&str>, ) -> EsiResult<Response<Vec<RecentKillmail>>>

Requires the following scope: esi-killmails.read_killmails.v1 Return a list of a character’s kills and losses going back 90 days esi: https://esi.evetech.net/latest/characters/{character_id}/killmails/

Source

pub async fn get_corporation_recent_killmails( &self, corporation_id: i32, access_token: &str, etag: Option<&str>, ) -> EsiResult<Response<Vec<RecentKillmail>>>

Requires the following scope: esi-killmails.read_corporation_killmails.v1 Get a list of a corporation’s kills and losses going back 90 days esi: https://esi.evetech.net/latest/corporations/{corporation_id}/killmails/

Source

pub async fn get_killmail( &self, killmail_id: i32, killmail_hash: &str, etag: Option<&str>, ) -> EsiResult<Response<Killmail>>

Return a single killmail from its ID and hash esi: https://esi.evetech.net/latest/killmails/{killmail_id}/{killmail_hash}/

Source§

impl Esi

Source

pub async fn get_character_location( &self, access_token: &str, character_id: i32, etag: Option<&str>, ) -> EsiResult<Response<CharacterLocation>>

Requires the following scope: esi-location.read_location.v1 Information about the characters current location. Returns the current solar system id, and also the current station or structure ID if applicable esi: https://esi.evetech.net/latest/characters/{character_id}/location/

Source

pub async fn get_character_online( &self, access_token: &str, character_id: i32, etag: Option<&str>, ) -> EsiResult<Response<CharacterOnline>>

Requires the following scope: esi-location.read_online.v1 Checks if the character is currently online esi: https://esi.evetech.net/latest/characters/{character_id}/online/

Source

pub async fn get_character_ship( &self, access_token: &str, character_id: i32, etag: Option<&str>, ) -> EsiResult<Response<CharacterShip>>

Requires the following scope: esi-location.read_ship_type.v1 Get the current ship type, name and id esi: https://esi.evetech.net/latest/characters/{character_id}/ship/

Source§

impl Esi

Source

pub async fn get_character_orders( &self, access_token: &str, character_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Vec<CharacterMarketOrder>>>

Get a list of orders in a character’s orders esi: https://esi.evetech.net/latest/characters/{character_id}/orders/

Source

pub async fn get_character_orders_history( &self, access_token: &str, character_id: i32, page: Option<i32>, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<CharacterMarketOrder>>>>

Get a list of historical orders in a character’s orders esi: https://esi.evetech.net/latest/characters/{character_id}/orders/history/

Source

pub async fn get_corporation_orders( &self, access_token: &str, corporation_id: i32, page: Option<i32>, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<CorporationMarketOrder>>>>

Get a list of orders in a corporation’s orders esi: https://esi.evetech.net/latest/corporations/{corporation_id}/orders/

Source

pub async fn get_corporation_orders_history( &self, access_token: &str, corporation_id: i32, page: Option<i32>, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<CorporationMarketOrder>>>>

Get a list of historical orders in a corporation’s orders esi: https://esi.evetech.net/latest/corporations/{corporation_id}/orders/history/

Source

pub async fn get_market_history( &self, region_id: i32, type_id: i32, etag: Option<&str>, ) -> EsiResult<Response<Vec<MarketHistory>>>

Get a list of historical market statistics for a type in a region esi: https://esi.evetech.net/latest/markets/{region_id}/history/

Source

pub async fn get_market_orders( &self, region_id: i32, order_type: Option<&MarketOrderType>, type_id: Option<i32>, page: Option<i32>, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<MarketOrder>>>>

Get a list of orders in a region esi: https://esi.evetech.net/latest/markets/{region_id}/orders/

Source

pub async fn get_market_types( &self, region_id: i32, page: Option<i32>, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<i32>>>>

Get a list of market types for a region esi: https://esi.evetech.net/latest/markets/{region_id}/types/

Source

pub async fn get_market_groups( &self, etag: Option<&str>, ) -> EsiResult<Response<Paged<Vec<i32>>>>

Get a list of market groups esi: https://esi.evetech.net/latest/markets/groups/

Source

pub async fn get_market_group( &self, market_group_id: i32, etag: Option<&str>, ) -> EsiResult<Response<MarketGroup>>

Get a list of types in a market group esi: https://esi.evetech.net/latest/markets/groups/{market_group_id}/

Source

pub async fn get_market_prices( &self, etag: Option<&str>, ) -> EsiResult<Response<Vec<MarketPrice>>>

Source

pub async fn get_market_structure( &self, access_token: &str, structure_id: i64, etag: Option<&str>, ) -> EsiResult<Response<Vec<MarketOrder>>>

Get a list of orders in a structure esi: https://esi.evetech.net/latest/markets/structures/{structure_id}/

Source§

impl Esi

Source

pub async fn get_universe_station( &self, station_id: i64, etag: Option<&str>, ) -> EsiResult<Response<Station>>

Source

pub async fn get_universe_system( &self, system_id: i32, etag: Option<&str>, ) -> EsiResult<Response<System>>

Source§

impl Esi

Source

pub fn new( owner_id: impl Into<String>, client_id: impl Into<String>, client_secret: impl Into<String>, callback_url: impl Into<String>, timeout: u64, ) -> EsiResult<Self>

Auto Trait Implementations§

§

impl Freeze for Esi

§

impl !RefUnwindSafe for Esi

§

impl Send for Esi

§

impl Sync for Esi

§

impl Unpin for Esi

§

impl !UnwindSafe for Esi

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more