Expand description
Accesses https://github.com/hax0kartik/3dsdb to get 3DS title data.
This module uses data from a set of JSON files published by hax0kartik. A quirk of this dataset is that these are divided by region. These can be accessed individually using the Region enum with get_releases and get_releases_async, or alternatively can all be accessed using get_all_releases, which is the recommended approach.
use client_3dsdb::json::get_all_releases;
async fn print_releases() {
let releases = get_all_releases().await.unwrap();
for release in releases {
println!("{}", release.name);
}
}If you know the title ID ahead of time, you can get a HashMap for lookups by title ID using get_releases_map.
use client_3dsdb::json::{get_releases_map, Region};
let releases = get_releases_map(Region::GB).unwrap();
let a_great_game = releases.get("0004000000030200").unwrap();
assert_eq!(a_great_game.name, "Kid Icarus™: Uprising")Structs§
- Region
Iter - An iterator over the variants of Region
- Release
- A 3DS title.
Enums§
- Region
- A title region. Required to access region-specific title lists.
Functions§
- get_
all_ releases - Gets Releases asynchronously for all regions
- get_
releases - Gets Releases synchronously for a given region.
- get_
releases_ async - Gets Releases asynchronously for a given region.
- get_
releases_ map - Gets a hash map of Releases with title IDs as the key.