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
/*!
This crate allows you to interact with the Analyticord backend.
# Example
```
use analyticord::client::Client;
use analyticord::events::Messages;
let client = Client::default("YOUR_TOKEN".into());
if client.is_err() {
print!("{}", "borked token, try again.");
std::process::exit(0);
}
let res = client.unwrap().send_event(Messages { amount: 10 });
match res {
Ok(data) => print!("Successfully submitted. ID: {}", data.id),
Err(error) => print!("Error: {:?}", error),
}
```
*/
extern crate reqwest;
extern crate serde;
extern crate serde_json;
extern crate serde_derive;
extern crate hyper;
extern crate derive_error;
/// Module containing all the weird events.
/// Module containing the custom error struct.
/// Module containing the Client struct.
/// Module containing the custom data struct.