gw2lib 3.0.2

A simple to use Gw2 API wrapper library
Documentation
#![cfg(feature = "blocking")]

use gw2lib::{
    model::maps::continents::{Continent, Floor},
    Requester,
};

pub mod setup;

#[test]
fn all() {
    let client = crate::setup::setup();
    let _: Vec<Continent> = client.all().unwrap();
}

#[test]
#[ignore]
fn tyria_all_floors() {
    let client = crate::setup::setup();
    let tyria: Continent = client.single(1).unwrap();
    for floor in tyria.floors {
        let _: Floor = client.single(floor).unwrap();
    }
}

#[test]
#[ignore]
fn mists_all_floors() {
    let client = crate::setup::setup();
    let mists: Continent = client.single(2).unwrap();
    for floor in mists.floors {
        let _: Floor = client.single(floor).unwrap();
    }
}

#[test]
fn single_from_tuple() {
    let client = crate::setup::setup();
    let floor: Floor = client
        .single((/* continent: */ 1, /* floor: */ 12).into())
        .unwrap();
    assert_eq!(floor.id, 12);
}