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
use Deserialize;
use fmt;
use Error;
/**
# Easybit.io API client.
Fully asynchronous wrapper for the easybit.io API.
## Getting an API Key
Head over to [easybit.io](https://easybit.io) and sign up for an account. Once you have an account, you can
request to retrieve an API key by sending an email to the EasyBit team.
### Usage
```rust
use easybit::client::Client;
use std::env;
#[tokio::main]
async fn main() {
let client = Client::new(env::var("URL").expect("URL must be set"),
env::var("API_KEY").expect("API_KEY must be set"));
let account = client.get_account().await.unwrap();
println!("{:?}", account);
}
```
*/
/**
* Common error structure for the EasyBit API.
*/
/**
### Catch-all error structure for this library.
* If a deserialization error occurs, it is likely that the underlying API has changed and the library needs to be updated. Kindly create an issue on GitHub.
* If a network error occurs, it is likely that the API is down or the URL is incorrect.
* If an API error occurs, the API has returned an error message, and you should review your code.
*/