tcloud-im-api 0.2.1

a rust implement tcloud im api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error(transparent)]
    IO(#[from] std::io::Error),     
    #[error(transparent)]
    Net(#[from] reqwest::Error),
    #[error(transparent)]
    JsonSerdeError(#[from] serde_json::error::Error),
    #[error("failed to request, code: {code}, msg: {msg}")]
    RemoteError{
        code: u32,
        msg: String
    },
    #[error("unknown error occurred")]
    Unknown,
}