Module xml

Module xml 

Source
Expand description

Accesses http://3dsdb.com to get 3DS title data.

This module uses data from an XML file published on 3dsdb.com. There are two methods to access these being get_releases and get_releases_async, which are equivalent bar the async usage.

use client_3dsdb::xml::get_releases;

fn print_releases() {
    let releases = get_releases().unwrap();

    for release in releases {
        println!("{}", release.name);
    }
}

If you know the title ID ahead of time, you can get a HashMap using get_releases_map.

use client_3dsdb::xml::get_releases_map;

let releases = get_releases_map().unwrap();
let a_great_game = releases.get("0004000000030200").unwrap();
assert_eq!(a_great_game.name, "Kid Icarus: Uprising")

Structs§

Release
A 3DS title.

Functions§

get_releases
Gets Releases synchronously.
get_releases_async
Gets of Releases asynchronously.
get_releases_map
Gets a hash map of Releases with title IDs as the key.