mattermost-client

This crate is an attempt to provde a sane Rust interface to the Mattermost API.

Example

```rust use mattermost_client::Client;

let client = Client::new("https://") .withuseragent("MyLittleSoftware/1.0") .withaccesstoken("");

client .posts() .createpost() .channelid("#welcome") .props(serdejson::json!({ "name": "Example", })) .message("Hello world!") .build() .send(&client) .await .intodiagnostic()?; ```

Installation

Add this in your Cargo.toml:

toml [dependencies] mattermost-client = "0.1"