mmrs

MatterMost Rust: a very simple MatterMost interface library written in Rust

Example:

```rust use mmrs;

fn main() { let yourhandle = "Degausser".tostring(); let yourname = "Ricky".tostring(); let mut message: mmrs::MMBody = mmrs::MMBody::new();

message.username = Some("mmrsBOT".to_string());
message.channel = Some("Town Square".to_string());

message.text = Some(format!(
    "{} is known as {}",
    &user,
    &your_name
));

let body = message.to_json().unwrap();

let response = mmrs::send_message("https://localhost:9009/post", body.to_string());

match response {
    Ok(code) => {
        if code == 200 {
            println!("{}: Sucess!", code);
        } else {
            println!("Error bad response code: {}\n\n", code);
        }
    }
    Err(e) => {
        println!("Error: {}\n\n", e);
    }
}

} ```