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§
- Builder
- Client
- The Client for making requests.
- Error
- An error that may occur when making API requests.
- Request
Builder - A builder for creating endpoint requests.
- Response
Future - A wrapper around a future returned by the async client.
Enums§
- Language
- All possible api languages. The default language is
En
.
Traits§
- Client
Executor - A client used to make requests to the API.
Type Aliases§
- Result
- An alias for
Result<T, Error>
.