papermc

Crates.iopapermc
lib.rspapermc
version0.1.0
sourcesrc
created_at2023-07-19 18:45:25.206705
updated_at2023-07-19 18:45:25.206705
descriptionPaperMc client, generated from the OpenAPI spec.
homepagehttps://github.com/domirusz24/papermc-rs
repositoryhttps://github.com/domirusz24/papermc-rs
max_upload_size
id920651
size65,858
(DomiRusz24)

documentation

https://docs.rs/papermc

README

Stars Build Status Downloads Crates.io

PaperMC client, generated from the OpenAPI spec.

Usage

use papermc::PaperMcClient;
use papermc::model::*;
#[tokio::main]
async fn main() {
    let client = PaperMcClient::from_env();
    let response = client.projects().await.unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

Installation

Add this to your Cargo.toml:

[dependencies]
papermc = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Commit count: 1

cargo fmt