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
Structs
The Client for making requests.
A builder for creating endpoint requests.
A wrapper around a future returned by the async client.
Enums
All possible api languages. The default language is En
.
Traits
Type Definitions
An alias for Result<T, Error>
.