Expand description
earthmc is an async Rust client to interact with the
EarthMC API.
§Installation
Add the following to your Cargo.toml:
[dependencies]
earthmc = "*"Replace the * with the actual version you want to use.
Alternatively you can run:
cargo add earthmc§Usage
§Create a new client
let client = Client::default();Finally, for more advanced configurations you can use a ClientBuilder:
let client = ClientBuilder::default()
.world(World::Other("nostra".to_string()))
.build()
.unwrap();Detailed usage examples are in the examples directory.
Re-exports§
pub use client::Client;pub use client::ClientBuilder;pub use reqwest;
Modules§
- client
- Client
- discord_
link - Discord Link
- errors
- Errors
- location
- Location
- mystery_
master - Mystery Master
- named_
id - Named ID
- nation
- Nation
- permission
- Permission
- player
- Player
- player_
stats - quarter
- Quarter
- query
- Query
- retry_
strategy - Retry strategy
- server
- Server
- town
- Town
- world
- World
- world_
location - World Location