[][src]Struct gw2rs::prelude::GW2

pub struct GW2 { /* fields omitted */ }

The Guild Wars 2 API Wrapper.

Structs of this type provide rust functions mapping to ArenaNet GuildWars 2 API (Version 2). The struct retains the API key to use for authenticated requests, along with the desired Locale.

Almost every method used to interact with the API through this crate is a self method on GW2. Mutator functions have been provided for scenarios where changing the API key or locale is desired, but since the wrapper keeps very little state, it is usually easier to just spawn new instances for one-off calls.

All exposed API functionality is, therefore, built on the requirement that only an immutable reference is necessary once initialized.

Methods

impl GW2
[src]

Retrieves today's daily achievements.

Retrieves tomorrows daily achievements.

Fetches achievements using a slice of u64 identifiers.

Retrieves the identifiers for valid achievement categories.

Retrieves achievement categories with the given identifiers.

Retrieves valid achievement group identifiers.

Retrieves achievement groups with the given identifiers.

impl GW2
[src]

Retrieves backstory answer identifiers.

Retrieves backstory answers using the given list of identifiers.

Retrieves backstory question identifiers.

Retrieves backstory questions using the given list of identifiers.

impl GW2
[src]

Initializes the GW2 API interface with a given API token.

Returns a reference to the current Locale.

Updates the current locale.

Returns a reference to the current API key.

Updates the current API Key.

Note

This method is provided for convenience. In usual workflows however it will probably make more sense to just instantiate a new GW2 struct, as there isnt really any state to lose. However, this is handy for situations where you're keeping a global struct, or need to be conservative regarding allocations being made.

Grants the caller an immutable reference to the internal HTTP Client. Useful for queueing up http requests as work to the internal Tokio Core.

Grants the caller an immutable reference to the internal Tokio handle.

impl GW2
[src]

Retrieves the current build information.

impl GW2
[src]

Retrieves cat identifiers.

Retrieves cats using a list of identifiers.

impl GW2
[src]

Retrieves valid color identifiers.

Retrieves a list of Colors using the given list of identifiers.

impl GW2
[src]

Fetches the current going rate converting the given number of gems into gold.

Fetches the current conversion rate converting gold into gems.

Fetches trading post sales data for the given item identifiers.

Fetches trading post data data on the prices of the given items.

Fetches the trading post deliveries for an account.

Fetches the current buy orders for an account.

Fetches the current sell orders for an account.

Fetches historical buy orders for an account.

Fetches historical sell orders for an account.

impl GW2
[src]

Retrieves a list of Currency identifiers.

Retrieves a list of Currency objects using the given list of identifiers.

impl GW2
[src]

Retrieves a list of Glider identifiers.

Retrieves a list of GW2 Gliders.

impl GW2
[src]

Fetches a list of GW2 Revenant Legend identifiers.

Fetches a list of GW2 Revenant Legends.

impl GW2
[src]

Fetches the list of Specialization identifiers.

Fetches a list of class specializations.

impl GW2
[src]

Fetches the list of Story identifiers.

Fetches a list of stories with identifiers matching the input set.

Fetches the list of story season identifiers.

Fetches a list of StorySeason's with identifiers matching the input set.

impl GW2
[src]

Fetches character title identifiers.

Fetches specificied character titles.

impl GW2
[src]

Fetches information on the provided access token.

impl GW2
[src]

Fetches a list of world (server) identifiers.

Fetches world data for the desired world identifiers.

impl GW2
[src]

Fetches World versus World Ability identifiers.

Fetches World versus World abilities with the given identifiers.

Returns a list of World vs World Objective identifiers.

Fetches world versus world match data for the given matchups.

Returns a list of World vs World Rank identifiers.

Returns a list of World vs World Ranks given a set of identifiers.

Returns a list of World vs World objective upgrade identifiers.

Returns a list of World vs World objective upgrades given a set of identifiers.

Trait Implementations

impl Debug for GW2
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for GW2

impl !Sync for GW2

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Erased for T