u-sdk 0.6.3

Some useful SDKs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("error: {0}")]
    Common(String),
    #[error("reqwest error: {0}")]
    Reqwest(#[from] reqwest::Error),
    #[error("response status is not success: {status}, text: {text}")]
    RequestAPIFailed { status: String, text: String },
    #[error("io error: {0}")]
    IO(#[from] std::io::Error),
    #[error("error: {0}")]
    Other(#[from] Box<dyn std::error::Error + Send + Sync>),
}