mutiny-rs 0.5.1

A Rust API wrapper for the Stoat chat platform.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;
use crate::http::HttpError;

#[derive(Error, Debug)]
pub enum Error {
    #[error("Invalid channel type: {0}")]
    InvalidChannelType(String),

    #[error("HTTP request failed: {0}")]
    Http(#[from] HttpError),

    #[error("Failed to parse JSON: {0}")]
    Json(#[from] serde_json::Error),

    #[error("API Error: {0}")]
    Api(String),
}