| Crates.io | paper-mc |
| lib.rs | paper-mc |
| version | 0.1.0 |
| created_at | 2022-10-02 11:09:02.737992+00 |
| updated_at | 2022-10-02 11:09:02.737992+00 |
| description | PaperMC client, generated from the OpenAPI spec. |
| homepage | https://github.com/libninjacom/paper-mc-rs |
| repository | https://github.com/libninjacom/paper-mc-rs |
| max_upload_size | |
| id | 678248 |
| size | 54,133 |
PaperMC client, generated from the OpenAPI spec.
use paper_mc::PaperMcClient;
use paper_mc::model::*;
#[tokio::main]
async fn main() {
let client = PaperMcClient::from_env();
let response = client.projects().send().await.unwrap();
println!("{:#?}", response);
}
This example loads configuration from environment variables, specifically:
PAPER_MC_BASE_URL
Add this to your Cargo.toml:
[dependencies]
paper-mc = "0.1.0"
You can see working examples of every API call in the examples/ directory.
Contributions are welcome!
Library created with Libninja.