1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//! # Speedrunapi
//! A REST API wrapper for speedrun.com's API
//!
//! Speedrunapi aims to make working with speedrun.com's api fast and easy
//!
//! ## Speedrunapi provides:
//!
//! - Pre-formatting of data
//! - Easy to use structure
//! - Translations of ids/times (Not really used yet will be used more soon!)
//! - Error handeling
//!
//! ## Current Modules:
//!
//! - [User Data](#user-data)
//! - [Guest Data](#guest-data)
//! - [Game Data](#game-data)
//! - [Game Types](#game-types)
//! - [Level Data](#level-data)
//!
//! # User Data
//! This module provides data about users on speedrun.com.
//!
//! Users have lots of data points connected to them.
//!
//! The user data module allows people using the crate to get these data points and use them!
//!
//! **Example:**
//!
//! I am using user: Bobertness as an example here, to show off roles. **This is a real user!**
//! ```rust
//! use speedrunapi::UserData;
//! let result = UserData::new("Bobertness").run();
//! assert_eq!(result.role(), "user");
//! ```
//!
//! # Guest Data
//! This module provides data about guests on speedrun.com
//!
//! Guests are how speedrun.com deals with users who havent made an account / arn't logged on to their account.
//!
//! Guests only have a name and a link connected to them.
//!
//! # Game Data
//! This module provides data about games on speedrun.com
//!
//! Games are places on speedrun.com where users can submit runs for.
//!
//! Games have many data points connected to them.
//! There are a few more data points that go with a game, but require a new module to be used (in progress).
//!
//! **Example:**
//!
//! This examples shows the fetching of the weblink of a game.
//! ```rust
//! use speedrunapi::GameData;
//! let result = GameData::new("MC").run();
//! assert_eq!(result.weblink(), "https://www.speedrun.com/mc");
//! ```
//!
//! # Game Types
//! This module provides data on game types.
//!
//! What is a gametype?
//!
//! According to speedrun.com: (Game types are classifications for unofficial games, for example ROM Hack, Fangame, Modification etc.)
//!
//! Game types only have a name, an id, and links attached to them.
//!
//! # Levels
//!
//! ---
//!
//! *This crate is licensed under the MIT license
pub use UserData;
pub use ;
pub use GameData;
pub use GameTypeData;
pub use LevelData;
pub