Crate earthmc

Crate earthmc 

Source
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