2024-04-21 15:23:17 +03:00
|
|
|
# playerdb-rs
|
|
|
|
|
2024-04-21 16:22:28 +03:00
|
|
|
[playerdb](https://playerdb.co/) client with support for async/sync.
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
### Async (using Tokio)
|
|
|
|
|
|
|
|
```Rust
|
|
|
|
let api = playerdb_rs::PlayerDBApi::default();
|
|
|
|
let result = api.get_minecraft_player("notch").await;
|
|
|
|
dbg!(result);
|
|
|
|
```
|
|
|
|
|
|
|
|
### Sync
|
|
|
|
|
|
|
|
```Rust
|
|
|
|
let api = playerdb_rs::sync::PlayerDBApi::default();
|
|
|
|
let result = api.get_minecraft_player("notch");
|
|
|
|
dbg!(result);
|
|
|
|
```
|