Crate gw2api_rs

Source
Expand description

A wrapper for the official Guild Wars 2 API

§Usage

use gw2api_rs::v2::build::Build;
use gw2api_rs::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let build = Build::get(&client).await?;

    println!("{}", build.id);
    Ok(())
}

Modules§

blocking
Drop in place sync api client.
v2
/v2 endpoint

Structs§

Builder
Client
The Client for making requests.
Error
An error that may occur when making API requests.
RequestBuilder
A builder for creating endpoint requests.
ResponseFuture
A wrapper around a future returned by the async client.

Enums§

Language
All possible api languages. The default language is En.

Traits§

ClientExecutor
A client used to make requests to the API.

Type Aliases§

Result
An alias for Result<T, Error>.